tests: Make meson be aware of the single python unit tests

Scan for the unit tests in virtual-image suite and handle them individually
This commit is contained in:
Marco Trevisan (Treviño)
2020-02-08 12:57:07 +01:00
committed by Benjamin Berg
parent 6eb06697e9
commit 0bb8ad1313
3 changed files with 78 additions and 9 deletions

View File

@@ -345,6 +345,6 @@ class VirtualImage(unittest.TestCase):
ctx.iteration(True)
assert(not self._verify_match)
# avoid writing to stderr
unittest.main(testRunner=unittest.TextTestRunner(stream=sys.stdout, verbosity=2))
if __name__ == '__main__':
# avoid writing to stderr
unittest.main(testRunner=unittest.TextTestRunner(stream=sys.stdout, verbosity=2))