[llvm] r375056 - [lit] Remove unnecessary usage of lit.Run

Julian Lettner via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 16 16:31:35 PDT 2019


Author: yln
Date: Wed Oct 16 16:31:32 2019
New Revision: 375056

URL: http://llvm.org/viewvc/llvm-project?rev=375056&view=rev
Log:
[lit] Remove unnecessary usage of lit.Run

Modified:
    llvm/trunk/utils/lit/lit/discovery.py
    llvm/trunk/utils/lit/tests/unit/TestRunner.py

Modified: llvm/trunk/utils/lit/lit/discovery.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/discovery.py?rev=375056&r1=375055&r2=375056&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/discovery.py (original)
+++ llvm/trunk/utils/lit/lit/discovery.py Wed Oct 16 16:31:32 2019
@@ -6,7 +6,6 @@ import copy
 import os
 import sys
 
-import lit.run
 from lit.TestingConfig import TestingConfig
 from lit import LitConfig, Test
 

Modified: llvm/trunk/utils/lit/tests/unit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/unit/TestRunner.py?rev=375056&r1=375055&r2=375056&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/unit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/tests/unit/TestRunner.py Wed Oct 16 16:31:32 2019
@@ -40,10 +40,9 @@ class TestIntegratedTestKeywordParser(un
         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():




More information about the llvm-commits mailing list