[PATCH 08/23] piglit: Merge filters from previous invocations when resuming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This commit has been posted to the piglit ml:

http://lists.freedesktop.org/archives/piglit/2013-November/008452.html

Signed-off-by: Damien Lespiau <damien.lespiau@xxxxxxxxx>
---
 piglit/piglit-run.py | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/piglit/piglit-run.py b/piglit/piglit-run.py
index 1d63cd4..d11d409 100755
--- a/piglit/piglit-run.py
+++ b/piglit/piglit-run.py
@@ -99,10 +99,15 @@ def main():
         old_results = core.load_results(resultsDir)
         profileFilename = old_results.options['profile']
 
-        # Changing the args to the old args allows us to set them
-        # all in one places down the way
-        args.exclude_tests = old_results.options['exclude_filter']
-        args.include_tests = old_results.options['filter']
+        # Append the test filters that were given in previous runs to the ones
+        # given in the resume invocation
+        for f in old_results.options['exclude_filter']:
+            if f not in args.exclude_tests:
+                args.exclude_tests.append(f)
+
+        for f in old_results.options['filter']:
+            if f not in args.include_tests:
+                args.include_tests.append(f)
 
     # Otherwise parse additional settings from the command line
     else:
-- 
1.8.3.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux