From ccc80cdad1d7917abfa3c7dcc51507f80b404bb0 Mon Sep 17 00:00:00 2001 From: Julian Lettner Date: Wed, 16 Oct 2019 23:31:32 +0000 Subject: [PATCH] [lit] Remove unnecessary usage of lit.Run llvm-svn: 375056 --- utils/lit/lit/discovery.py | 1 - utils/lit/tests/unit/TestRunner.py | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/utils/lit/lit/discovery.py b/utils/lit/lit/discovery.py index 6867f5ca77f..d8054543d01 100644 --- a/utils/lit/lit/discovery.py +++ b/utils/lit/lit/discovery.py @@ -6,7 +6,6 @@ import copy import os import sys -import lit.run from lit.TestingConfig import TestingConfig from lit import LitConfig, Test diff --git a/utils/lit/tests/unit/TestRunner.py b/utils/lit/tests/unit/TestRunner.py index 27166cd69a2..dfd46563998 100644 --- a/utils/lit/tests/unit/TestRunner.py +++ b/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():