diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-06-17 18:17:46 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-06-17 18:17:46 +0000 |
commit | a3d77e7348fab4eb7e22d8d8a321884c5e53d19b (patch) | |
tree | 6b5d993bfe94eff318a60471980b7b485ea80b42 /llvm/utils/lit | |
parent | 58cb745f31d24d2cb15a158684681f096c5d5744 (diff) | |
download | bcm5719-llvm-a3d77e7348fab4eb7e22d8d8a321884c5e53d19b.tar.gz bcm5719-llvm-a3d77e7348fab4eb7e22d8d8a321884c5e53d19b.zip |
lit: simplify population of the actual_inputs array
Add all inputs to the array, except those starting with @, which
are treated as response files and expanded.
llvm-svn: 211119
Diffstat (limited to 'llvm/utils/lit')
-rw-r--r-- | llvm/utils/lit/lit/discovery.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/lit/lit/discovery.py b/llvm/utils/lit/lit/discovery.py index c3c0f283b55..876d4f31e95 100644 --- a/llvm/utils/lit/lit/discovery.py +++ b/llvm/utils/lit/lit/discovery.py @@ -200,9 +200,7 @@ def find_tests_for_inputs(lit_config, inputs): # 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,8 @@ def find_tests_for_inputs(lit_config, inputs): actual_inputs.append(ln) finally: f.close() + else: + actual_inputs.append(input) # Load the tests from the inputs. tests = [] |