summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2016-10-13 15:55:32 -0700
committerDylan Baker <dylan@pnwbakers.com>2016-11-10 10:50:31 -0800
commit3d887afe4762c78f1b280789339c4e73c71bc2dd (patch)
treea4e77e47abc2d809b0318e02247ac55ec72b8720 /framework
parent908e28423afceee508a33357797703ebbdeb2cc3 (diff)
framework/programs/run: Only allow --test-list if one profile
This limitation has basically always existed, but for the next patch to function this is a requirement. This limitation will be properly fixed in a follow up series (that was originally part of this series, but the size and scope of the series got too big so this was split.) Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/programs/run.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/programs/run.py b/framework/programs/run.py
index b92de9935..8af844809 100644
--- a/framework/programs/run.py
+++ b/framework/programs/run.py
@@ -316,6 +316,10 @@ def run(input_):
profile.results_dir = args.results_path
# If a test list is provided then set the forced_test_list value.
if args.test_list:
+ if len(args.test_profiles) != 1:
+ raise exceptions.PiglitFatalError(
+ 'Unable to force a test list with more than one profile')
+
with open(args.test_list) as test_list:
# Strip newlines
profile.forced_test_list = list([t.strip() for t in test_list])