[pypy-svn] r59646 - pypy/build/testrunner

pedronis at codespeak.net pedronis at codespeak.net
Sun Nov 2 13:11:19 CET 2008


Author: pedronis
Date: Sun Nov  2 13:11:17 2008
New Revision: 59646

Modified:
   pypy/build/testrunner/runner.py
Log:
support for cherrypicking test dirs



Modified: pypy/build/testrunner/runner.py
==============================================================================
--- pypy/build/testrunner/runner.py	(original)
+++ pypy/build/testrunner/runner.py	Sun Nov  2 13:11:17 2008
@@ -198,6 +198,7 @@
     test_driver = [os.path.abspath(os.path.join('py', 'bin', 'py.test'))]
     parallel_runs = 1
     timeout = None
+    cherrypick = None
     
     def __init__(self, root):
         self.root = root
@@ -284,8 +285,12 @@
             print >>out, "using config", config_py_file
             execfile(config_py_file, run_param.__dict__)
     run_param.__dict__.pop('__builtins__', None)
-    
-    run_param.collect_testdirs(testdirs)
+
+    if run_param.cherrypick:
+        for p in run_param.cherrypick:
+            run_param.collect_testdirs(testdirs, root.join(p))
+    else:
+        run_param.collect_testdirs(testdirs)
 
     if opts.parallel_runs:
         run_param.parallel_runs = opts.parallel_runs



More information about the Pypy-commit mailing list