]> granicus.if.org Git - esp-idf/commitdiff
CI: fix bug in generating UT CI runner config:
authorHe Yin Ling <heyinling@espressif.com>
Mon, 10 Apr 2017 07:08:15 +0000 (15:08 +0800)
committerHe Yin Ling <heyinling@espressif.com>
Mon, 10 Apr 2017 07:35:32 +0000 (15:35 +0800)
the first case ID in filter is incorrect. Should put test case ID but
not test case itself to the filter.

tools/unit-test-app/tools/UnitTestParser.py

index 0f151e9d92e48b2f40666c250041147d1ff6991b..6569d44cb8829934557323befc5e6df79bbaa4d3 100644 (file)
@@ -76,7 +76,7 @@ class Parser(object):
                     if tc["test environment"] in self.test_env_tags:
                         self.test_env_tags[tc["test environment"]].append(tc["ID"])
                     else:
-                        self.test_env_tags.update({tc["test environment"]: [tc]})
+                        self.test_env_tags.update({tc["test environment"]: [tc["ID"]]})
                 test_cases.append(tc)
 
         os.remove("section_table.tmp")