[Piglit] [PATCH] Add test-list after resume test

Rami Ben Hassine ramix.ben.hassine at intel.com
Fri Nov 18 12:53:41 UTC 2016

Hello all, 

Actually piglit don’t use the test-list option if we reboot (for x resons) and want to resume a test , note that is not related to suspend test.

 framework/programs/run.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/framework/programs/run.py b/framework/programs/run.py
index e5d5583..2a11288 100644
--- a/framework/programs/run.py
+++ b/framework/programs/run.py
@@ -228,6 +228,7 @@ def _create_metadata(args, name):
     opts['concurrent'] = args.concurrency
     opts['include_filter'] = args.include_tests
     opts['exclude_filter'] = args.exclude_tests
+    opts['test_list']= args.test_list
     opts['dmesg'] = args.dmesg
     opts['monitoring'] = args.monitored
     if args.platform:
@@ -423,6 +424,12 @@ def resume(input_):
         if results.options['include_filter']:
+        # If a test list is provided then set the forced_test_list value.
+        if results.options['test_list']:
+           with open(results.options['test_list']) as test_list:
+            # Strip newlines
+               profiles[0].forced_test_list = [t.strip() for t in test_list]
     # This is resumed, don't bother with time since it won't be accurate anyway

Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

More information about the Piglit mailing list