]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: avoid dirname in tests
authorEric Blake <eblake@redhat.com>
Tue, 17 Jan 2012 19:09:51 +0000 (12:09 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 17 Jan 2012 19:09:51 +0000 (12:09 -0700)
commitdccf45f376a11ae175267e4f68924ce713b639d8
tree4fa6fb3d4fdd55fd7679b59ac0e1047bc2b2b64e
parente1eb93470edfdeaa06c4435f280a59ba0b9bc92e
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.
tests/qemuxml2argvdata/qemu-supported-cpus.sh
tests/qemuxml2argvdata/qemu.sh