This now throws a more helpful error message when not found: tests/qemu-iotests$ ./check 045 QEMU -- "/qemu/build/x86_64-softmmu/qemu-system-x86_64" -nodefaults -machine accel=qtest QEMU_IMG -- "/qemu/build/qemu-img" QEMU_IO -- "/qemu/build/qemu-io" --cache writeback -f raw QEMU_NBD -- "/qemu/build/qemu-nbd" TEST_DIR -- /qemu/build/tests/qemu-iotests/scratch SOCKET_SCM_HELPER --
045 1s ... [failed, exit status 1] - output mismatch (see 045.out.bad) -........... +......EE.EE +====================================================================== +ERROR: test_add_fd (__main__.TestSCMFd) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "045", line 147, in test_add_fd + self._send_fd_by_SCM() + File "045", line 143, in _send_fd_by_SCM + ret = self.vm.send_fd_scm(image0) + File "/source/qemu/tests/qemu-iotests/../../scripts/qemu.py", line 125, in send_fd_scm + self._socket_scm_helper) +QEMUMachineError: socket_scm_helper does not exist + ---------------------------------------------------------------------- Failures: 045 Failed 1 of 1 tests Signed-off-by: Philippe Mathieu-Daudé <[email protected]> --- tests/qemu-iotests/check | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check index e6b6ff7a04..a2c0bab1cc 100755 --- a/tests/qemu-iotests/check +++ b/tests/qemu-iotests/check @@ -597,6 +597,8 @@ fi if [ -x "$build_iotests/socket_scm_helper" ] then export SOCKET_SCM_HELPER="$build_iotests/socket_scm_helper" +else + _init_error "socket_scm_helper not found" fi default_machine=$($QEMU_PROG -machine help | sed -n '/(default)/ s/ .*//p') -- 2.15.1
