diff options
author | Petri Latvala <petri.latvala@intel.com> | 2017-02-01 12:57:45 +0200 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-02-02 11:33:01 -0800 |
commit | 0c535186d624071098c10003fdafe8f475ed9ae7 (patch) | |
tree | bcecd0e4e335811f66e49acb26fdcd6426b17582 /framework | |
parent | 87f48e5ab2f5b25477852fbc5c8859ac7b9f2b94 (diff) |
framework/programs/run.py: Allow comments in test-list files.
IGT testing in Intel's CI is using static lists of tests to
run. Commenting out tests and annotating them will help
human-readability.
v2: Use comprehensions (Dylan)
CC: Dylan Baker <dylan@pnwbakers.com>
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/programs/run.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/programs/run.py b/framework/programs/run.py index 177bd535c..508bc05c4 100644 --- a/framework/programs/run.py +++ b/framework/programs/run.py @@ -317,8 +317,9 @@ def run(input_): 'Unable to force a test list with more than one profile') with open(args.test_list) as test_list: - # Strip newlines - forced_test_list = [t.strip() for t in test_list] + # Strip newlines and comments, ignore empty lines + stripped = (t.split('#')[0].strip() for t in test_list) + forced_test_list = [t for t in stripped if t] backend = backends.get_backend(args.backend)( args.results_path, |