aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/testenv.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-05-03 13:01:09 +0200
committerMax Reitz <mreitz@redhat.com>2021-05-14 16:14:10 +0200
commit480b75ee1423ee6d8aba59cb8090d60eb97676ff (patch)
tree4e85a2de7a92f429b216e0fcfce4d18d95def0b2 /tests/qemu-iotests/testenv.py
parentc64430d2386d9968342a8e1ae00ed34ff0b98bbb (diff)
downloadqemu-480b75ee1423ee6d8aba59cb8090d60eb97676ff.zip
qemu-480b75ee1423ee6d8aba59cb8090d60eb97676ff.tar.gz
qemu-480b75ee1423ee6d8aba59cb8090d60eb97676ff.tar.bz2
qemu-iotests: let "check" spawn an arbitrary test command
Right now there is no easy way for "check" to print a reproducer command. Because such a reproducer command line would be huge, we can instead teach check to start a command of our choice. This can be for example a Python unit test with arguments to only run a specific subtest. Move the trailing empty line to print_env(), since it always looks better and one caller was not adding it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Tested-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Message-Id: <20210323181928.311862-5-pbonzini@redhat.com> Message-Id: <20210503110110.476887-5-pbonzini@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/testenv.py')
-rw-r--r--tests/qemu-iotests/testenv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qemu-iotests/testenv.py b/tests/qemu-iotests/testenv.py
index fca3a60..cd0e39b 100644
--- a/tests/qemu-iotests/testenv.py
+++ b/tests/qemu-iotests/testenv.py
@@ -284,7 +284,8 @@ IMGPROTO -- {IMGPROTO}
PLATFORM -- {platform}
TEST_DIR -- {TEST_DIR}
SOCK_DIR -- {SOCK_DIR}
-SOCKET_SCM_HELPER -- {SOCKET_SCM_HELPER}"""
+SOCKET_SCM_HELPER -- {SOCKET_SCM_HELPER}
+"""
args = collections.defaultdict(str, self.get_env())