summaryrefslogtreecommitdiffstats
path: root/templates/tests/fixup-weston-watchdog.jinja2
blob: afc8eda6599b3d1f3d737dfdc6cb22bded729605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- 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:
          # disable the watchdog - for slow systems
          - sed -i -e "s#WatchdogSec=20#WatchdogSec=0#g" /usr/lib/systemd/system/agl-compositor.service
          # disable the coredumps - for slow systems
          - echo "kernel.core_pattern=/dev/null" > /etc/sysctl.d/50-coredump.conf
          - sysctl -p /etc/sysctl.d/50-coredump.conf
          - systemctl daemon-reload
          - sleep 5
      from: inline
      name: fixup-weston-watchdog
      path: inline/fixup-weston-watchdog.yaml