aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAna Guerrero Lopez <ana.guerrero@collabora.com>2018-07-06 00:00:38 +0200
committerMatt Hart <github@blacklabsystems.com>2018-09-03 13:57:17 +0100
commitdcd2330ea6feb245a3701b6901f466dc5e120d7d (patch)
tree138575d1f516fd143207fec80258d4f3d88a49a0 /templates
parent5eff75221c70f1adb854412df02d8f7d82ef3a60 (diff)
templates: usb: update test plan to check usb devices after suspend
Add two more tests to check the presence of all the usb devices after suspending the system using rtcwake with the modes 'mem' and 'freeze'. Signed-off-by: Ana Guerrero Lopez <ana.guerrero@collabora.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/usb/usb.jinja28
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/usb/usb.jinja2 b/templates/usb/usb.jinja2
index 6640ae6..7912374 100644
--- a/templates/usb/usb.jinja2
+++ b/templates/usb/usb.jinja2
@@ -13,8 +13,14 @@
- functional
run:
steps:
- - lsusb
- lava-test-case usb-presence --shell test -n \"$(lsusb)\"
+ - lsusb | awk {'print $6'} | sort > before.txt
+ - for i in $(seq 1 3); do /usr/sbin/rtcwake -d rtc0 -m freeze -s 1; done
+ - lsusb | awk {'print $6'} | sort > after-freeze.txt
+ - lava-test-case compare-freeze --shell diff -u before.txt after-freeze.txt
+ - for i in $(seq 1 3); do /usr/sbin/rtcwake -d rtc0 -m mem -s 1; done
+ - lsusb | awk {'print $6'} | sort > after-mem.txt
+ - lava-test-case compare-mem --shell diff -u before.txt after-mem.txt
lava-signal: kmsg
from: inline
name: usb