You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2014/01/09 21:36:53 UTC

[06/18] git commit: Disable multiproc plugin if coverage enabled

Disable multiproc plugin if coverage enabled

Signed-off-by: Tim Van Steenburgh <tv...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/3d419ecc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/3d419ecc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/3d419ecc

Branch: refs/heads/tv/6905
Commit: 3d419ecc20a2fe3e6de10cfed7fa9de814dc8df5
Parents: dd3b5a8
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Tue Jan 7 21:14:03 2014 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Tue Jan 7 21:14:03 2014 +0000

----------------------------------------------------------------------
 run_tests | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3d419ecc/run_tests
----------------------------------------------------------------------
diff --git a/run_tests b/run_tests
index 38e63e4..e105040 100755
--- a/run_tests
+++ b/run_tests
@@ -112,6 +112,9 @@ def run_tests_in_parallel(options, nosetests_args):
     def get_pkg_path(pkg):
         return ALT_PKG_PATHS.get(pkg, '')
     def get_multiproc_args(pkg):
+        if '--with-coverage' in nosetests_args:
+            # coverage and multiproc plugins not compatible
+            return ''
         return ('--processes={procs_per_suite} --process-timeout={proc_timeout}'.format(
                     procs_per_suite=options.concurrent_tests,
                     proc_timeout=PROC_TIMEOUT)