]> Git Repo - qemu.git/commit - tests/qemu-iotests/iotests.py
iotests: add testing shim for script-style python tests
authorJohn Snow <[email protected]>
Mon, 29 Jul 2019 20:35:53 +0000 (16:35 -0400)
committerJohn Snow <[email protected]>
Fri, 16 Aug 2019 20:28:02 +0000 (16:28 -0400)
commit456a2d5ac7641c7e75c76328a561b528a8607a8e
treed842b6bf89968cf8c5e9f5063932d1c9d8e43fab
parentc23909e5301b506bc9a59d178129cfdf6b75bda7
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 <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Message-id: 20190709232550[email protected]
Signed-off-by: John Snow <[email protected]>
tests/qemu-iotests/iotests.py
This page took 0.033616 seconds and 4 git commands to generate.