mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: correct PATH in new test, for when running manually
* 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.
This commit is contained in:
parent
36a03bd2ee
commit
e915962a04
@ -20,17 +20,17 @@
|
|||||||
: ${abs_top_srcdir=$(pwd)/..}
|
: ${abs_top_srcdir=$(pwd)/..}
|
||||||
: ${abs_top_builddir=$(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.
|
# so that we can safely invoke "virsh" simply with its name.
|
||||||
case $PATH in
|
case $PATH in
|
||||||
$abs_top_builddir/tools/src:$abs_top_builddir/tools/virsh:*) ;;
|
$abs_top_builddir/tools/src:$abs_top_builddir/tools:*) ;;
|
||||||
$abs_top_builddir/tools/virsh:*) ;;
|
$abs_top_builddir/tools:*) ;;
|
||||||
*) PATH=$abs_top_builddir/tools/virsh:$PATH; export PATH ;;
|
*) PATH=$abs_top_builddir/tools:$PATH; export PATH ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
if test "$VERBOSE" = yes; then
|
||||||
set -x
|
set -x
|
||||||
$abs_top_builddir/tools/virsh --version
|
virsh --version
|
||||||
fi
|
fi
|
||||||
|
|
||||||
. "$srcdir/test-lib.sh"
|
. "$srcdir/test-lib.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user