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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
2a02b9df6e
commit
bcea74f976
@ -38,7 +38,6 @@ except NameError:
|
||||
|
||||
|
||||
FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
|
||||
FILES_PATTERN = re.compile(r"//\s+Files:(.*)")
|
||||
|
||||
|
||||
class SimpleTestCase(test.TestCase):
|
||||
@ -87,12 +86,6 @@ class SimpleTestCase(test.TestCase):
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user