summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests/unit
diff options
context:
space:
mode:
authorJulian Lettner <jlettner@apple.com>2019-10-16 23:31:32 +0000
committerJulian Lettner <jlettner@apple.com>2019-10-16 23:31:32 +0000
commit168ef8a8d695eb374e8997e9d163c96c51f38624 (patch)
tree21ae44c7c8cb9eca704410e7444c1f9b51e5fccd /llvm/utils/lit/tests/unit
parent640d6de4293a2883513cc84c535bb7de9f882e1c (diff)
downloadbcm5719-llvm-168ef8a8d695eb374e8997e9d163c96c51f38624.tar.gz
bcm5719-llvm-168ef8a8d695eb374e8997e9d163c96c51f38624.zip
[lit] Remove unnecessary usage of lit.Run
llvm-svn: 375056
Diffstat (limited to 'llvm/utils/lit/tests/unit')
-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