mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
iotests: log messages from notrun()
Shift the logging initialization up to occur prior to validation checks, so that notrun() messages still get printed to console. (Also, remove the "debugging messages active" message, because we don't need to see that hundreds of times per iotest suite run.) Signed-off-by: John Snow <jsnow@redhat.com> Message-Id: <20200514201614.19941-2-jsnow@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
d7eca54222
commit
44a46a9cd9
1 changed files with 5 additions and 6 deletions
|
@ -1168,18 +1168,17 @@ def execute_setup_common(supported_fmts: Sequence[str] = (),
|
||||||
sys.stderr.write('Please run this test via the "check" script\n')
|
sys.stderr.write('Please run this test via the "check" script\n')
|
||||||
sys.exit(os.EX_USAGE)
|
sys.exit(os.EX_USAGE)
|
||||||
|
|
||||||
|
debug = '-d' in sys.argv
|
||||||
|
if debug:
|
||||||
|
sys.argv.remove('-d')
|
||||||
|
logging.basicConfig(level=(logging.DEBUG if debug else logging.WARN))
|
||||||
|
|
||||||
_verify_image_format(supported_fmts, unsupported_fmts)
|
_verify_image_format(supported_fmts, unsupported_fmts)
|
||||||
_verify_protocol(supported_protocols, unsupported_protocols)
|
_verify_protocol(supported_protocols, unsupported_protocols)
|
||||||
_verify_platform(supported=supported_platforms)
|
_verify_platform(supported=supported_platforms)
|
||||||
_verify_cache_mode(supported_cache_modes)
|
_verify_cache_mode(supported_cache_modes)
|
||||||
_verify_aio_mode(supported_aio_modes)
|
_verify_aio_mode(supported_aio_modes)
|
||||||
|
|
||||||
debug = '-d' in sys.argv
|
|
||||||
if debug:
|
|
||||||
sys.argv.remove('-d')
|
|
||||||
logging.basicConfig(level=(logging.DEBUG if debug else logging.WARN))
|
|
||||||
logger.debug("iotests debugging messages active")
|
|
||||||
|
|
||||||
return debug
|
return debug
|
||||||
|
|
||||||
def execute_test(*args, test_function=None, **kwargs):
|
def execute_test(*args, test_function=None, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue