1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-26 14:03:49 +03:00

tests: avoid dirname in tests

qemuxml2argvtest sanitizes PATH to just /bin, but on at least
Fedora 16, dirname lives in /usr/bin instead.  Regression
introduced in commit e7201afd.

* tests/qemuxml2argvdata/qemu.sh: Avoid forking a dirname call,
since dirname might not be in PATH after test sanitization.
* tests/qemuxml2argvdata/qemu-supported-cpus.sh: Likewise.
Diagnosed by Michal Privoznik.
This commit is contained in:
Eric Blake 2012-01-17 12:09:51 -07:00
parent e1eb93470e
commit dccf45f376
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#! /bin/sh
. $(dirname $0)/qemu-lib.sh
. ${0%/*}/qemu-lib.sh
case $* in
"-M ?")

View File

@ -1,6 +1,6 @@
#! /bin/sh
. $(dirname $0)/qemu-lib.sh
. ${0%/*}/qemu-lib.sh
case $* in
"-M ?")