summaryrefslogtreecommitdiff
path: root/zephyr/zmake/tests
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-04-07 17:07:59 +1200
committerCommit Bot <commit-bot@chromium.org>2021-04-13 07:01:25 +0000
commitee4257735632f5453b9377f9f60f5c68f6917537 (patch)
treec57d43667535c249791811ba859b9466befecf68 /zephyr/zmake/tests
parentca160a3394c952f0732f66eb113b9735b5655ed2 (diff)
downloadchrome-ec-ee4257735632f5453b9377f9f60f5c68f6917537.tar.gz
zephyr: zmake: Ensure all output is produced
At present if one process finishes with an error the output of other processes may be truncated, since zmake exits immediately. This can be confusing since running repeatedly gives different output. Fix it by waiting until all processes are complete before exiting. BUG=b:184298184 BRANCH=none TEST=(cd zephyr/zmake/ && python3 -m pytest .) Change-Id: Ib6c3dd5966c2b381d811c84e3c1c5b5f5fc3cf9a Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2801173 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'zephyr/zmake/tests')
-rw-r--r--zephyr/zmake/tests/test_zmake.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/zmake/tests/test_zmake.py b/zephyr/zmake/tests/test_zmake.py
index acd9409585..f6067513cb 100644
--- a/zephyr/zmake/tests/test_zmake.py
+++ b/zephyr/zmake/tests/test_zmake.py
@@ -105,3 +105,12 @@ def test_filter_info():
'Running /usr/bin/ninja -C /tmp/z/vol/build-rw',
'SRAM: 48632 B 62 KB 76.60%',
}
+
+
+def test_filter_debug():
+ """Test what appears on the DEBUG level"""
+ recs, _ = do_test_with_log_level(logging.DEBUG)
+ # The RO version has three extra lines: the SUCCESS asterisks
+ # Both versions add the first 'Building' line above, with the temp dir
+ expect = 321 + 318 + 2
+ assert len(recs) == expect