[SCM] Samba Shared Repository - branch master updated

Andreas Schneider asn at samba.org
Fri Jun 19 19:55:02 UTC 2020


The branch, master has been updated
       via  27709178e02 python: Fix get_max_worker_count() to always have two runners
      from  e478470f201 python: Run cmdline tools for arbitary docs test in parallel

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 27709178e02fcd955d3f142b0e83f429aa31e33d
Author: Andreas Schneider <asn at samba.org>
Date:   Fri Jun 19 17:35:19 2020 +0200

    python: Fix get_max_worker_count() to always have two runners
    
    Thanks to Jim Brown.
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Alexander Bokovoy <ab at samba.org>
    Reviewed-by: David Mulder <dmulder at suse.com>
    
    Autobuild-User(master): Andreas Schneider <asn at cryptomilk.org>
    Autobuild-Date(master): Fri Jun 19 19:54:04 UTC 2020 on sn-devel-184

-----------------------------------------------------------------------

Summary of changes:
 python/samba/tests/docs.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/python/samba/tests/docs.py b/python/samba/tests/docs.py
index 5fb04ab4e2e..10339702a97 100644
--- a/python/samba/tests/docs.py
+++ b/python/samba/tests/docs.py
@@ -57,12 +57,12 @@ def get_max_worker_count():
     cpu_count = multiprocessing.cpu_count()
 
     # Always run two processes in parallel
-    if cpu_count <= 2:
+    if cpu_count < 2:
         return 2
 
     max_workers = int(cpu_count / 2)
-    if max_workers < 1:
-        return 1
+    if max_workers < 2:
+        return 2
 
     return max_workers
 


-- 
Samba Shared Repository



More information about the samba-cvs mailing list