[Piglit] [PATCH v3 9/28] framework/programs/run: Only allow --test-list if one profile

Dylan Baker dylan at pnwbakers.com
Mon Oct 31 17:50:05 UTC 2016


This limitation has basically always existed, but for the next patch to
function this is a requirement. This limitation will be properly fixed
later in this series.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 framework/programs/run.py | 4 ++++
 1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/framework/programs/run.py b/framework/programs/run.py
index bf0cebe..73bdc9a 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])
-- 
git-series 0.8.10


More information about the Piglit mailing list