summaryrefslogtreecommitdiffstats
path: root/templates/tests/fixup-weston-watchdog.jinja2
blob: 75c9157d4492409ffee149a4ac5c943236d83cc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
- 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/user/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
          # need to reload user-session and system daemon
          - su - agl-driver -c 'export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1001/bus" ; systemctl --user daemon-reload'
          - systemctl daemon-reload
          #- systemctl restart agl-session@agl-driver.service
          - sleep 20
      from: inline
      name: fixup-weston-watchdog
      path: inline/fixup-weston-watchdog.yaml