diff options
-rw-r--r-- | templates/tests/fixup-weston-watchdog.jinja2 | 19 | ||||
-rw-r--r-- | utils/agljobtemplate.py | 3 |
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 |