]> git.ipfire.org Git - thirdparty/qemu.git/commit
iotests: add testing shim for script-style python tests
authorJohn Snow <jsnow@redhat.com>
Mon, 29 Jul 2019 20:35:53 +0000 (16:35 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 28 Oct 2019 04:53:35 +0000 (23:53 -0500)
commit4d9bdd31496acc3d51d58490006244d75a485100
tree15ec4cf8c0f67db241744c65bf9c4407651b863e
parent97c478c355fee96eb2b740313f50561e69b6f305
iotests: add testing shim for script-style python tests

Because the new-style python tests don't use the iotests.main() test
launcher, we don't turn on the debugger logging for these scripts
when invoked via ./check -d.

Refactor the launcher shim into new and old style shims so that they
share environmental configuration.

Two cleanup notes: debug was not actually used as a global, and there
was no reason to create a class in an inner scope just to achieve
default variables; we can simply create an instance of the runner with
the values we want instead.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190709232550.10724-14-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
(cherry picked from commit 456a2d5ac7641c7e75c76328a561b528a8607a8e)
*prereq for 88d2aa533a
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tests/qemu-iotests/iotests.py