Skip to content

Commit

Permalink
test: remove Files: comment processing from Python test runner
Browse files Browse the repository at this point in the history
We don't use any Files: comments in our tests so remove the Python code
for it from test/testpy/__init__.py.

PR-URL: #25183
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
Trott authored and MylesBorins committed May 16, 2019
1 parent 424f254 commit 8d791ab
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/testpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@


FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
FILES_PATTERN = re.compile(r"//\s+Files:(.*)")


class SimpleTestCase(test.TestCase):
Expand Down Expand Up @@ -87,12 +86,6 @@ def GetCommand(self):
print(': Skipping as node was compiled without crypto support')
else:
result += flags
files_match = FILES_PATTERN.search(source);
additional_files = []
if files_match:
additional_files += files_match.group(1).strip().split()
for a_file in additional_files:
result.append(join(dirname(self.config.root), '..', a_file))

if self.additional_flags:
result += self.additional_flags
Expand Down

0 comments on commit 8d791ab

Please sign in to comment.