Permalink
Browse files

test: remove Files: comment processing from Python test runner

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 Dec 22, 2018
1 parent a28cae0 commit db54531c8d06fb9b3e21815bdda8077012dd76ac
Showing with 0 additions and 7 deletions.
  1. +0 −7 test/testpy/__init__.py
@@ -38,7 +38,6 @@


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


class SimpleTestCase(test.TestCase):
@@ -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

0 comments on commit db54531

Please sign in to comment.