]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: correct PATH in new test, for when running manually
authorJim Meyering <meyering@redhat.com>
Tue, 11 May 2010 15:43:16 +0000 (17:43 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 11 May 2010 16:01:11 +0000 (18:01 +0200)
* tests/virsh-schedinfo: This test sets PATH internally, just in
case you're running it manually.  Normally, the PATH setting from
tests/Makefile.am's TESTS_ENVIRONMENT is sufficient.  Prepend the
correct directory, and take advantage of the PATH setting in one
more case.

tests/virsh-schedinfo

index b276a2e197640ff7cf0c603e44a60e7946287f7f..a2ec193acc52f887982b67732cce956b156297bf 100755 (executable)
 : ${abs_top_srcdir=$(pwd)/..}
 : ${abs_top_builddir=$(pwd)/..}
 
-# If $abs_top_builddir/tools/virsh is not early in $PATH, put it there,
+# If $abs_top_builddir/tools is not early in $PATH, put it there,
 # so that we can safely invoke "virsh" simply with its name.
 case $PATH in
-  $abs_top_builddir/tools/src:$abs_top_builddir/tools/virsh:*) ;;
-  $abs_top_builddir/tools/virsh:*) ;;
-  *) PATH=$abs_top_builddir/tools/virsh:$PATH; export PATH ;;
+  $abs_top_builddir/tools/src:$abs_top_builddir/tools:*) ;;
+  $abs_top_builddir/tools:*) ;;
+  *) PATH=$abs_top_builddir/tools:$PATH; export PATH ;;
 esac
 
 if test "$VERBOSE" = yes; then
   set -x
-  $abs_top_builddir/tools/virsh --version
+  virsh --version
 fi
 
 . "$srcdir/test-lib.sh"