KVM test: kvm_utils.py: add utility function which locates program files
find_command() is similar to os_dep.command(), but instead of searching $PATH,
it searches a few hard coded locations. The problem with searching
$PATH is that different users may have different $PATHs. For example, autotest
can be executed by a non-root user, or using sudo, and in some OSes this will
result in /sbin not being included in $PATH.
Signed-off-by: Michael Goldish <mgoldish@redhat.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4707 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed