]> granicus.if.org Git - llvm/commitdiff
[lit] Remove unnecessary usage of lit.Run
authorJulian Lettner <jlettner@apple.com>
Wed, 16 Oct 2019 23:31:32 +0000 (23:31 +0000)
committerJulian Lettner <jlettner@apple.com>
Wed, 16 Oct 2019 23:31:32 +0000 (23:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375056 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 6867f5ca77f3c834052a0f2d0cb703dabd482d36..d8054543d018db9d219239cfd76cafcd3b42ebdd 100644 (file)
@@ -6,7 +6,6 @@ import copy
 import os
 import sys
 
-import lit.run
 from lit.TestingConfig import TestingConfig
 from lit import LitConfig, Test
 
index 27166cd69a23e025f7d3289b32133ece13e660fa..dfd465639985b5fbd6508c54d14b802b6aaf0cae 100644 (file)
@@ -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():