summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
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])