summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests/unit/TestRunner.py
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/lit/tests/unit/TestRunner.py')
-rw-r--r--llvm/utils/lit/tests/unit/TestRunner.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/utils/lit/tests/unit/TestRunner.py b/llvm/utils/lit/tests/unit/TestRunner.py
index 27166cd69a2..dfd46563998 100644
--- a/llvm/utils/lit/tests/unit/TestRunner.py
+++ b/llvm/utils/lit/tests/unit/TestRunner.py
@@ -40,10 +40,9 @@ class TestIntegratedTestKeywordParser(unittest.TestCase):
test_path = os.path.dirname(os.path.dirname(__file__))
inputs = [os.path.join(test_path, 'Inputs/testrunner-custom-parsers/')]
assert os.path.isdir(inputs[0])
- run = lit.run.Run(lit_config,
- lit.discovery.find_tests_for_inputs(lit_config, inputs))
- assert len(run.tests) == 1 and "there should only be one test"
- TestIntegratedTestKeywordParser.inputTestCase = run.tests[0]
+ tests = lit.discovery.find_tests_for_inputs(lit_config, inputs)
+ assert len(tests) == 1 and "there should only be one test"
+ TestIntegratedTestKeywordParser.inputTestCase = tests[0]
@staticmethod
def make_parsers():
OpenPOWER on IntegriCloud