You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2014/12/17 23:41:58 UTC

allura git commit: Minimum 2 procs when running test suite to avoid unknown deadlock

Repository: allura
Updated Branches:
  refs/heads/master 6bc42a205 -> b3f3f4a9c


Minimum 2 procs when running test suite to avoid unknown deadlock


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

Branch: refs/heads/master
Commit: b3f3f4a9c7c32cfd84d617f856331d9260e4505b
Parents: 6bc42a2
Author: Dave Brondsema <da...@brondsema.net>
Authored: Wed Dec 17 17:41:52 2014 -0500
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Wed Dec 17 17:41:52 2014 -0500

----------------------------------------------------------------------
 run_tests | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/b3f3f4a9/run_tests
----------------------------------------------------------------------
diff --git a/run_tests b/run_tests
index 9944997..c91362c 100755
--- a/run_tests
+++ b/run_tests
@@ -29,7 +29,7 @@ import textwrap
 
 CPUS = multiprocessing.cpu_count()
 CONCURRENT_SUITES = (CPUS // 4) or CPUS
-CONCURRENT_TESTS = (CPUS // CONCURRENT_SUITES) or 1
+CONCURRENT_TESTS = max(CPUS // CONCURRENT_SUITES, 2)  # need at least two, see thread http://mail-archives.apache.org/mod_mbox/allura-dev/201409.mbox/%3C541C5756.1020604%40brondsema.net%3E
 PROC_TIMEOUT = 180
 
 ALT_PKG_PATHS = {