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.
llvm-svn: 211048
# Expand '@...' form in inputs.
actual_inputs = []
for input in inputs:
- if input.startswith('@'):
+ if os.path.exists(input) or not input.startswith('@'):
+ actual_inputs.append(input)
+ else:
f = open(input[1:])
try:
for ln in f:
actual_inputs.append(ln)
finally:
f.close()
- elif os.path.exists(input):
- actual_inputs.append(input)
- else:
- lit_config.warning('no such file or directory: %r' % input)
# Load the tests from the inputs.
tests = []