forked from OSchip/llvm-project
[lit] Remove unnecessary usage of lit.Run
llvm-svn: 375056
This commit is contained in:
parent
640d6de429
commit
168ef8a8d6
|
@ -6,7 +6,6 @@ import copy
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import lit.run
|
|
||||||
from lit.TestingConfig import TestingConfig
|
from lit.TestingConfig import TestingConfig
|
||||||
from lit import LitConfig, Test
|
from lit import LitConfig, Test
|
||||||
|
|
||||||
|
|
|
@ -40,10 +40,9 @@ class TestIntegratedTestKeywordParser(unittest.TestCase):
|
||||||
test_path = os.path.dirname(os.path.dirname(__file__))
|
test_path = os.path.dirname(os.path.dirname(__file__))
|
||||||
inputs = [os.path.join(test_path, 'Inputs/testrunner-custom-parsers/')]
|
inputs = [os.path.join(test_path, 'Inputs/testrunner-custom-parsers/')]
|
||||||
assert os.path.isdir(inputs[0])
|
assert os.path.isdir(inputs[0])
|
||||||
run = lit.run.Run(lit_config,
|
tests = lit.discovery.find_tests_for_inputs(lit_config, inputs)
|
||||||
lit.discovery.find_tests_for_inputs(lit_config, inputs))
|
assert len(tests) == 1 and "there should only be one test"
|
||||||
assert len(run.tests) == 1 and "there should only be one test"
|
TestIntegratedTestKeywordParser.inputTestCase = tests[0]
|
||||||
TestIntegratedTestKeywordParser.inputTestCase = run.tests[0]
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def make_parsers():
|
def make_parsers():
|
||||||
|
|
Loading…
Reference in New Issue