提交 dccf45f3 编写于 作者: E Eric Blake

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.
上级 e1eb9347
#! /bin/sh
. $(dirname $0)/qemu-lib.sh
. ${0%/*}/qemu-lib.sh
case $* in
"-M ?")
......
#! /bin/sh
. $(dirname $0)/qemu-lib.sh
. ${0%/*}/qemu-lib.sh
case $* in
"-M ?")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册