Преглед изворни кода

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

Angus Gratton пре 6 година
родитељ
комит
9fa87f04da
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tools/unit-test-app/unit_test.py

+ 1 - 1
tools/unit-test-app/unit_test.py

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