mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 08:05:24 +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
159 B
Bash
Executable File
16 lines
159 B
Bash
Executable File
#! /bin/sh
|
|
|
|
. ${0%/*}/qemu-lib.sh
|
|
|
|
case $* in
|
|
"-M ?")
|
|
faked_machine
|
|
;;
|
|
"-cpu ?")
|
|
faked_cpu | grep -Fv '['
|
|
;;
|
|
*)
|
|
real_qemu "$@"
|
|
;;
|
|
esac
|