Index: llvm/trunk/utils/lit/lit/discovery.py =================================================================== --- llvm/trunk/utils/lit/lit/discovery.py +++ llvm/trunk/utils/lit/lit/discovery.py @@ -200,9 +200,7 @@ # Expand '@...' form in inputs. actual_inputs = [] for input in inputs: - if os.path.exists(input) or not input.startswith('@'): - actual_inputs.append(input) - else: + if input.startswith('@'): f = open(input[1:]) try: for ln in f: @@ -211,6 +209,10 @@ 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 = []