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

Damien Lespiau damien.lespiau at intel.com
Fri Nov 15 17:33:25 CET 2013


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 at intel.com>
---
 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




More information about the Intel-gfx mailing list