]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/functional: Fix bad usage of has_cmd
authorThomas Huth <thuth@redhat.com>
Tue, 10 Sep 2024 07:58:20 +0000 (09:58 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 11 Sep 2024 07:49:12 +0000 (09:49 +0200)
commit59d100243d23451e66d2274d34edab7be6dab473
tree47ac4118d848d625d4a9bc17c184815c3221dd45
parent69e4fbd0ea22d8cc6421fe2e9f09dfa4be242ccf
tests/functional: Fix bad usage of has_cmd

has_cmd returns a tuple, not a boolean value. This fixes a crash when
e.g. "tesseract" is not available in the test_m68k_nextcube test.

Reported-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240910075820.51346-1-thuth@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/qemu_test/cmd.py
tests/functional/qemu_test/tesseract.py