Skip to contentSkip to conversation

ci: work around zephyr test issues

PATCH Applied Jon Mason 2 participants 3 messages Jun 22, 2022 – Jun 23, 2022

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/1 ci: work around zephyr test issues

zephyr uses icount to improve test accuracy on virtual hardware. Do the same here for the same reason for the platforms that actually test. Also, the common test now appears to work for microbit-v1 and poll doe snot work for qemu-cortex-m3

---
 ci/microbit-v1.yml                     | 4 ----
 ci/qemu-cortex-m3.yml                  | 4 +++-
 meta-arm/conf/machine/microbit-v1.conf | 1 +
 3 files changed, 4 insertions(+), 5 deletions(-)
ci/microbit-v1.yml +0 -4
index d78af2b2..b8501486 100644
@@ -4,8 +4,4 @@ header:
     - ci/base.yml
     - ci/meta-zephyr.yml
 
-local_conf_header:
-  failing_tests: |
-    ZEPHYRTESTS:remove = "common"
-
 machine: microbit-v1
ci/qemu-cortex-m3.yml +3 -1
index 8a96037c..6f892a9e 100644
@@ -13,6 +13,8 @@ local_conf_header:
   tclibc: |
     TCLIBC = "newlib"
   nonbuilding_tests: |
-    ZEPHYRTESTS:remove = "context pending sleep"
+    ZEPHYRTESTS:remove = "context pending poll sleep"
+  qemu_opts: |
+    QB_OPT_APPEND = "-icount shift=3,align=off,sleep=on -rtc clock=vm"
 
 machine: qemu-cortex-m3
meta-arm/conf/machine/microbit-v1.conf +1 -0
index 6b18191e..ef3872fe 100644
@@ -16,6 +16,7 @@ QB_MACHINE = "-machine microbit"
 QB_CPU = "-cpu cortex-m0"
 QB_GRAPHICS = "-nographic -vga none"
 QB_RNG = ""
+QB_OPT_APPEND = "-icount shift=6,align=off,sleep=on -rtc clock=vm"
 
 # Zephyr RTOS settings
 ZEPHYR_BOARD = "qemu_cortex_m0"
Signature · 1 line
2.17.1
Applied
#1 lore raw
Quoted 4 lines · Jon Mason

zephyr uses icount to improve test accuracy on virtual hardware. Do the same here for the same reason for the platforms that actually test. Also, the common test now appears to work for microbit-v1 and poll doe snot work for qemu-cortex-m3

Applied, thanks!

[1/1] ci: work around zephyr test issues

      commit: 658de4e5e266cf3542bc88da4519f861f75f07a8

Best regards,

Signature · 1 line
Jon Mason <[email protected]>
Applied
#2 lore raw
In reply to Jon Mason
Quoted 4 lines · Jon Mason

zephyr uses icount to improve test accuracy on virtual hardware. Do the same here for the same reason for the platforms that actually test. Also, the common test now appears to work for microbit-v1 and poll doe snot work for qemu-cortex-m3

Applied, thanks!

[1/1] ci: work around zephyr test issues

      commit: af928569b421431347c84f5941cee7aaa9f0ac74

Best regards,

Signature · 1 line
Jon Mason <[email protected]>