diff options
author | Tibor Frank <tifrank@cisco.com> | 2020-09-24 09:40:01 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2020-09-24 07:45:53 +0000 |
commit | 3dfbcab5a292102b6fd7e092e1a29a775fb8cdad (patch) | |
tree | e9b73ddf01bb6c8a4a55f496988502942ea44dd7 /resources/tools/presentation/input_data_parser.py | |
parent | 632c71b4d20c9e775b1578c628879fa0f9dfdfb4 (diff) |
Trending: Replace snat by nat
Change-Id: Ifcb1311d46b7134502b142933fd1574eb94cc230
Signed-off-by: Tibor Frank <tifrank@cisco.com>
(cherry picked from commit 7bcc61b0ab7fb4dd46fd38e361df6ef8aa8e181b)
Diffstat (limited to 'resources/tools/presentation/input_data_parser.py')
-rw-r--r-- | resources/tools/presentation/input_data_parser.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py index fcaf4a0d8e..e611c2c185 100644 --- a/resources/tools/presentation/input_data_parser.py +++ b/resources/tools/presentation/input_data_parser.py @@ -1038,11 +1038,16 @@ class ExecutionChecker(ResultVisitor): name = test.name.lower() # Remove TC number from the TC long name (backward compatibility): - self._test_id = re.sub(self.REGEX_TC_NUMBER, u"", longname) + self._test_id = re.sub( + self.REGEX_TC_NUMBER, u"", longname.replace(u"snat", u"nat") + ) # Remove TC number from the TC name (not needed): - test_result[u"name"] = re.sub(self.REGEX_TC_NUMBER, "", name) + test_result[u"name"] = re.sub( + self.REGEX_TC_NUMBER, "", name.replace(u"snat", u"nat") + ) - test_result[u"parent"] = test.parent.name.lower() + test_result[u"parent"] = test.parent.name.lower().\ + replace(u"snat", u"nat") test_result[u"tags"] = tags test_result["doc"] = test.doc.\ replace(u'"', u"'").\ |