Skip to content

Commit 168ef8a

Browse files
committed
[lit] Remove unnecessary usage of lit.Run
llvm-svn: 375056
1 parent 640d6de commit 168ef8a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

llvm/utils/lit/lit/discovery.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import os
77
import sys
88

9-
import lit.run
109
from lit.TestingConfig import TestingConfig
1110
from lit import LitConfig, Test
1211

llvm/utils/lit/tests/unit/TestRunner.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ def load_keyword_parser_lit_tests():
4040
test_path = os.path.dirname(os.path.dirname(__file__))
4141
inputs = [os.path.join(test_path, 'Inputs/testrunner-custom-parsers/')]
4242
assert os.path.isdir(inputs[0])
43-
run = lit.run.Run(lit_config,
44-
lit.discovery.find_tests_for_inputs(lit_config, inputs))
45-
assert len(run.tests) == 1 and "there should only be one test"
46-
TestIntegratedTestKeywordParser.inputTestCase = run.tests[0]
43+
tests = lit.discovery.find_tests_for_inputs(lit_config, inputs)
44+
assert len(tests) == 1 and "there should only be one test"
45+
TestIntegratedTestKeywordParser.inputTestCase = tests[0]
4746

4847
@staticmethod
4948
def make_parsers():

0 commit comments

Comments
 (0)