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:
parent
e1eb93470e
commit
dccf45f376
@ -1,6 +1,6 @@
|
||||
#! /bin/sh
|
||||
|
||||
. $(dirname $0)/qemu-lib.sh
|
||||
. ${0%/*}/qemu-lib.sh
|
||||
|
||||
case $* in
|
||||
"-M ?")
|
||||
|
@ -1,6 +1,6 @@
|
||||
#! /bin/sh
|
||||
|
||||
. $(dirname $0)/qemu-lib.sh
|
||||
. ${0%/*}/qemu-lib.sh
|
||||
|
||||
case $* in
|
||||
"-M ?")
|
||||
|
Loading…
x
Reference in New Issue
Block a user