llvm.org GIT mirror llvm / baf9879
Revert "lit: warn when passed invalid pathname" (r210597) It was pointed out that this breaks the "virtual test discovery" mechanism, which allows for narming tests in the test exec root. Reverting until I can figure out how to fix this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211048 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 5 years ago
1 changed file(s) with 3 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
199199 # Expand '@...' form in inputs.
200200 actual_inputs = []
201201 for input in inputs:
202 if input.startswith('@'):
202 if os.path.exists(input) or not input.startswith('@'):
203 actual_inputs.append(input)
204 else:
203205 f = open(input[1:])
204206 try:
205207 for ln in f:
208210 actual_inputs.append(ln)
209211 finally:
210212 f.close()
211 elif os.path.exists(input):
212 actual_inputs.append(input)
213 else:
214 lit_config.warning('no such file or directory: %r' % input)
215213
216214 # Load the tests from the inputs.
217215 tests = []