# Path: lava_dispatcher/utils/shell.py
# def _which_check(path, match):
#     """
#     Simple replacement for the `which` command found on
#     Debian based systems. Allows ordinary users to query
#     the PATH used at runtime.
#     """
#     paths = os.environ['PATH'].split(':')
#     if os.getuid() != 0:
#         # avoid sudo - it may ask for a password on developer systems.
#         paths.extend(['/usr/local/sbin', '/usr/sbin', '/sbin'])
#     for dirname in paths:
#         candidate = os.path.join(dirname, path)
#         if match(candidate):
#             return candidate
#     return None


import os
from stat import S_IXUSR
from lava_dispatcher.utils.shell import _which_check
# Copyright (C) 2016 Linaro Limited
#
# Author: Remi Duraffort <remi.duraffort@linaro.org>
#
# This file is part of LAVA Dispatcher.
#
# LAVA Dispatcher is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# LAVA Dispatcher is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along
# with this program; if not, see <http://www.gnu.org/licenses>.




class DummyLogger(object):
    def info(self, *args, **kwargs):
        pass

    def debug(self, *args, **kwargs):

# Path: lava_dispatcher/utils/shell.py
# def _which_check(path, match):
#     """
#     Simple replacement for the `which` command found on
#     Debian based systems. Allows ordinary users to query
#     the PATH used at runtime.
#     """
#     paths = os.environ['PATH'].split(':')
#     if os.getuid() != 0:
#         # avoid sudo - it may ask for a password on developer systems.
#         paths.extend(['/usr/local/sbin', '/usr/sbin', '/sbin'])
#     for dirname in paths:
#         candidate = os.path.join(dirname, path)
#         if match(candidate):
#             return candidate
#     return None


# Path: lava_dispatcher/test/utils.py
import os
from stat import S_IXUSR
from lava_dispatcher.utils.shell import _which_check

# Copyright (C) 2016 Linaro Limited
#
# Author: Remi Duraffort <remi.duraffort@linaro.org>
#
# This file is part of LAVA Dispatcher.
#
# LAVA Dispatcher is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# LAVA Dispatcher is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along
# with this program; if not, see <http://www.gnu.org/licenses>.




class DummyLogger(object):
    def info(self, *args, **kwargs):
        pass

    def debug(self, *args, **kwargs):

        pass