summaryrefslogtreecommitdiff
path: root/docs/zephyr_build.md
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-04-07 17:00:09 +1200
committerCommit Bot <commit-bot@chromium.org>2021-04-13 07:01:24 +0000
commitca160a3394c952f0732f66eb113b9735b5655ed2 (patch)
tree6bf21aee84e53456e7474492be3be702b98237ae /docs/zephyr_build.md
parent76cd38a0b214bdbfd45ffa7c3633329a8eab65ab (diff)
downloadchrome-ec-ca160a3394c952f0732f66eb113b9735b5655ed2.tar.gz
zephyr: zmake: Add a test for zmake and output filtering
At present there are no tests for zmake.py itself. Add a simple one to provide some coverage. Use this to test that the filtering does what we expect. This works by using some pre-canned output for the RO and RW, running each file through a separate 'cat' command in its own process, then comparing the results obtained in the log. In creating this test, unexpected behaviour was found with the image-size logging (Memory, FLASH:, etc), in that they end up on the ERROR level, if previous output has appeared on that level. This is because the default log level changes to whatever the last log output was. So fix this at the same time. For now we don't check the DEBUG level, since it has a bug. BUG=b:177096315 BRANCH=none TEST=(cd zephyr/zmake/ && python3 -m pytest .) Signed-off-by: Simon Glass <sjg@chromium.org> Cq-Depend: chromium:2819138 Change-Id: Iaa777815b577ab814eb2e69d34a3047ae57f0b45 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2807486
Diffstat (limited to 'docs/zephyr_build.md')
-rw-r--r--docs/zephyr_build.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/zephyr_build.md b/docs/zephyr_build.md
index 79a3c7e42f..5a3c809724 100644
--- a/docs/zephyr_build.md
+++ b/docs/zephyr_build.md
@@ -71,7 +71,7 @@ You may also need to install these items:
```bash
sudo apt-get install cmake ninja-build python3-pyelftools gcc-multilib \
- python3-pykwalify python3-colorama
+ python3-pykwalify python3-colorama python3-testfixtures
```
You must reinstall zmake after any `repo sync` since new features may have been