~pwlars/ubuntu-test-cases/auto-offline-devices

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
description: Let a device sleep and parse the kernel log to explain any wakeups or wakelocks that blocked suspend
dependencies: none
action: |
  1. Clear /var/log/kern.log
  2. start suspend-blocker
  3. disconnect the device and sleep for 30 min
  4. reconnect to the device and stop suspend-blocker
  5. use suspend-blocker to parse /var/log/kern.log
expected_results: |
  1. kern.json and wakelock-stats.json should be saved to /tmp/results
type: userland
timeout: 2000
command: ./suspend-blocker.sh
#build_cmd:
tc_setup: ./setup.sh
#tc_cleanup: