]> git.proxmox.com Git - mirror_qemu.git/commit - tests/qtest/libqtest.c
tests/libqtest: Use a proper error message if QTEST_QEMU_BINARY is missing
authorThomas Huth <thuth@redhat.com>
Mon, 28 Aug 2017 10:25:45 +0000 (12:25 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 15 Sep 2017 07:05:18 +0000 (09:05 +0200)
commitdb221e66d8117f810c8046ce42c156580e4292aa
tree0c536c967bcd96722e8a5b217c7bd21ff48a4340
parent33ea6cf712c2e98bb4cb266034e59958027e4b00
tests/libqtest: Use a proper error message if QTEST_QEMU_BINARY is missing

The user can currently still cause an abort() if running certain tests
(like the prom-env-test) without setting the QTEST_QEMU_BINARY first.
A similar problem has been fixed with commit 7c933ad61b8f3f51337
already, but forgot to also take care of the qtest_get_arch() function,
so let's introduce a proper wrapper around getenv("QTEST_QEMU_BINARY")
that can be used in both locations now.

Buglink: https://bugs.launchpad.net/qemu/+bug/1713434
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/libqtest.c