From 9ea9558cf642f945fe93868fdb9470463b652536 Mon Sep 17 00:00:00 2001 From: zPlus Date: May 06 2020 14:31:30 +0000 Subject: Set NUMPROCS minimum value for tests. When multiprocessing.cpu_count() is 1, NUMPROCS is set to zero and no processes are started. This change sets the minimum value for NUMPROCS to 1. --- diff --git a/runtests.py b/runtests.py index 50ef9a4..054477f 100755 --- a/runtests.py +++ b/runtests.py @@ -27,9 +27,12 @@ NUMREMAINING = None PRINTLOCK = None RUNNING = [] FAILED = [] + NUMPROCS = multiprocessing.cpu_count() - 1 if os.environ.get("BUILD_ID"): NUMPROCS = multiprocessing.cpu_count() +if NUMPROCS < 1: + NUMPROCS = 1 HERE = os.path.join(os.path.dirname(os.path.abspath(__file__))) LOG = logging.getLogger(__name__)