summaryrefslogtreecommitdiff
path: root/zephyr/zmake/zmake/zmake.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-04-07 16:53:23 +1200
committerCommit Bot <commit-bot@chromium.org>2021-04-07 20:19:31 +0000
commite8d4831bd75804cc63c679204719dcd163c2637d (patch)
treec958b5aac4cb1813003dc3e7b3cd8cc2ee544878 /zephyr/zmake/zmake/zmake.py
parent2867193866966106225b19a3b7d5d18ba43489e8 (diff)
downloadchrome-ec-e8d4831bd75804cc63c679204719dcd163c2637d.tar.gz
zephyr: zmake: Reset the multiproc module before use
At present the logging map from one test can still be around for a following tests. This can cause strange behaviour. Add a reset() function to help with this. Call it from the Zmake constructor which is used by any test which cares about this. BUG=b:177096315 BRANCH=none TEST=with other CLs, see that the tests pass when all run together Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I0bf112e705c6badd3958a0afba8a3761e95fa547 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2809780 Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'zephyr/zmake/zmake/zmake.py')
-rw-r--r--zephyr/zmake/zmake/zmake.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/zmake/zmake/zmake.py b/zephyr/zmake/zmake/zmake.py
index 120f1aeaeb..0b1a57866c 100644
--- a/zephyr/zmake/zmake/zmake.py
+++ b/zephyr/zmake/zmake/zmake.py
@@ -126,6 +126,7 @@ class Zmake:
"""
def __init__(self, checkout=None, jobserver=None, jobs=0, modules_dir=None,
zephyr_base=None):
+ zmake.multiproc.reset()
self._checkout = checkout
self._zephyr_base = zephyr_base