Fix how testRandomOrder.py builds tag arguments

This commit is contained in:
Martin Hořeňovský 2020-07-11 21:31:08 +02:00
parent 115d6a1c40
commit 89fe35d515
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -15,9 +15,9 @@ import random
def list_tests(self_test_exe, tags, rng_seed):
cmd = [self_test_exe, '--list-test-names-only', '--order', 'rand',
'--rng-seed', str(rng_seed)]
tags_arg = ','.join('[{}]'.format(t) for t in tags)
tags_arg = ','.join('[{}]~[.]'.format(t) for t in tags)
if tags_arg:
cmd.append(tags_arg + '~[.]')
cmd.append(tags_arg)
process = subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = process.communicate()