unit_test.py: Allow identifying a unit test which has : in the name

This commit is contained in:
Angus Gratton 2019-12-11 16:32:17 +11:00 committed by Angus Gratton
parent 0978fc1b84
commit 9fa87f04da

View file

@ -763,7 +763,7 @@ if __name__ == '__main__':
for test_item in test_args: for test_item in test_args:
if len(test_item) == 0: if len(test_item) == 0:
continue continue
pair = test_item.split(r':') pair = test_item.split(r':', 1)
if len(pair) == 1 or pair[0] is 'name': if len(pair) == 1 or pair[0] is 'name':
test_dict['name'] = pair[0] test_dict['name'] = pair[0]
elif len(pair) == 2: elif len(pair) == 2: