|
|
@@ -179,28 +179,11 @@ class Parser(object):
|
|
|
"""
|
|
|
prop = self.parse_case_properities(description)
|
|
|
|
|
|
- idf_path = os.getenv("IDF_PATH")
|
|
|
-
|
|
|
- # use relative file path to IDF_PATH, to make sure file path is consist
|
|
|
- relative_file_path = os.path.relpath(file_name, idf_path)
|
|
|
-
|
|
|
- file_name_hash = int(hashlib.sha256(relative_file_path).hexdigest(), base=16) % 1000
|
|
|
-
|
|
|
- if file_name_hash in self.file_name_cache:
|
|
|
- self.file_name_cache[file_name_hash] += 1
|
|
|
- else:
|
|
|
- self.file_name_cache[file_name_hash] = 1
|
|
|
-
|
|
|
- tc_id = "UT_%s_%s_%03d%02d" % (self.module_map[prop["module"]]['module abbr'],
|
|
|
- self.module_map[prop["module"]]['sub module abbr'],
|
|
|
- file_name_hash,
|
|
|
- self.file_name_cache[file_name_hash])
|
|
|
-
|
|
|
test_case = deepcopy(TEST_CASE_PATTERN)
|
|
|
test_case.update({"config": config_name,
|
|
|
"module": self.module_map[prop["module"]]['module'],
|
|
|
"CI ready": "No" if prop["ignore"] == "Yes" else "Yes",
|
|
|
- "ID": tc_id,
|
|
|
+ "ID": name,
|
|
|
"test point 2": prop["module"],
|
|
|
"steps": name,
|
|
|
"test environment": prop["test_env"],
|