diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-18 12:31:46 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-01-06 08:43:26 +0100 |
commit | ee5e7977e3e6a24806b467010deedc71898c0aa2 (patch) | |
tree | 75e163e289b61c59b33ba44188f969b6fd6d00a5 /run_unittests.py | |
parent | c9d9dacdbc9fad31f00f871b24ec6b99a611ff5e (diff) | |
download | meson-ee5e7977e3e6a24806b467010deedc71898c0aa2.zip meson-ee5e7977e3e6a24806b467010deedc71898c0aa2.tar.gz meson-ee5e7977e3e6a24806b467010deedc71898c0aa2.tar.bz2 |
mtest: allow parsing TAP line by line
This is the first step towards asynchronous parsing of the TAP output.
We will need to call the same code from both a "for" loop (for unit
tests) and an "async for" loop (for mtest itself). Because the same
function cannot be both a generator and an asynchronous generator, we
need to build both on a common core. This commit therefore introduces
a parse_line function that "parse" can call in a loop. All the local
variables of TAPParser.parse move into "self".
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'run_unittests.py')
0 files changed, 0 insertions, 0 deletions