incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [06/18] git commit: Disable multiproc plugin if coverage enabled
Date Thu, 09 Jan 2014 20:36:53 GMT
Disable multiproc plugin if coverage enabled

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@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 <tvansteenburgh@gmail.com>
Authored: Tue Jan 7 21:14:03 2014 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@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)


Mime
View raw message