unit_test.py: Allow identifying a unit test which has : in the name
This commit is contained in:
parent
0978fc1b84
commit
9fa87f04da
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue