aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2021-12-06 17:41:28 +0100
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2021-12-06 17:41:28 +0100
commitfe5a8ac48f8c74ae4975e34976023ce2f6c5e8fa (patch)
tree67a62cd732677d4cd9a49676b077caf5c9765079
parentbef98eb7c240828035d091c7a626ad99d76a8caa (diff)
Add workaround for weston watchdog for emulation in CI
The emulated workers are slower than real hardware, thus extend the timeout. Bug-AGL: SPEC-4165 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Change-Id: I4113d1ad28964efb31a55121ff3dbb1a29893a6f
-rw-r--r--templates/tests/fixup-weston-watchdog.jinja219
-rw-r--r--utils/agljobtemplate.py3
2 files changed, 22 insertions, 0 deletions
diff --git a/templates/tests/fixup-weston-watchdog.jinja2 b/templates/tests/fixup-weston-watchdog.jinja2
new file mode 100644
index 0000000..ce403b4
--- /dev/null
+++ b/templates/tests/fixup-weston-watchdog.jinja2
@@ -0,0 +1,19 @@
+- test:
+ failure_retry: 3
+ definitions:
+ - repository:
+ metadata:
+ format: Lava-Test Test Definition 1.0
+ name: fixup-weston-watchdog
+ description: "extend watchdog on virtual"
+ run:
+ steps:
+ - sed -i -e "s#WatchdogSec=20#WatchdogSec=60#g" /lib/systemd/system/weston.service
+ - systemctl daemon-reload
+ - systemctl restart weston.service
+ - sleep 60
+ - journalctl --no-pager -a -b
+ from: inline
+ name: fixup-weston-watchdog
+ path: inline/fixup-weston-watchdog.yaml
+
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py
index c25dc9f..456f43e 100644
--- a/utils/agljobtemplate.py
+++ b/utils/agljobtemplate.py
@@ -184,8 +184,11 @@ class Agljobtemplate(object):
if section[0] == "test_plan":
tests = ast.literal_eval(section[1])
+
if 'all' in tests:
tests = self.tests
+ if machine == 'qemuarm' or machine == 'qemuarm64':
+ tests.insert(0, "fixup-weston-watchdog")
for t in tests:
if machine == 'bbe' and t == 'screenshooter':
continue