mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 11:51:11 +00:00
dccf45f376
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.
16 lines
144 B
Bash
Executable File
16 lines
144 B
Bash
Executable File
#! /bin/sh
|
|
|
|
. ${0%/*}/qemu-lib.sh
|
|
|
|
case $* in
|
|
"-M ?")
|
|
faked_machine
|
|
;;
|
|
"-cpu ?")
|
|
faked_cpu
|
|
;;
|
|
*)
|
|
real_qemu "$@"
|
|
;;
|
|
esac
|