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 90d6fd849e
commit 250d9b9c72
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -16,9 +16,9 @@ import xml.etree.ElementTree as ET
def list_tests(self_test_exe, tags, rng_seed): def list_tests(self_test_exe, tags, rng_seed):
cmd = [self_test_exe, '--reporter', 'xml', '--list-tests', '--order', 'rand', cmd = [self_test_exe, '--reporter', 'xml', '--list-tests', '--order', 'rand',
'--rng-seed', str(rng_seed)] '--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: if tags_arg:
cmd.append(tags_arg + '~[.]') cmd.append(tags_arg)
process = subprocess.Popen( process = subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = process.communicate() stdout, stderr = process.communicate()