unit-test.py: implement repeat for meson
The script takes a repeat argument -r but the value wasn't being
forwarded when invoking meson.
Change-Id: Ib813449c7b52914309050179ef53b11e48d6be4a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/scripts/unit-test.py b/scripts/unit-test.py
index d6662c1..f94b53c 100755
--- a/scripts/unit-test.py
+++ b/scripts/unit-test.py
@@ -864,7 +864,9 @@
def test(self):
try:
- check_call_cmd('meson', 'test', '-C', 'build')
+ test_args = ('--repeat', str(args.repeat), '-C', 'build')
+ check_call_cmd('meson', 'test', *test_args)
+
except CalledProcessError:
for root, _, files in os.walk(os.getcwd()):
if 'testlog.txt' not in files: