5
#In case anything goes wrong, try to leave the device attached
6
ncd_usb.py -u http://qa-relay-control -b 0 -r 0 on
9
trap cleanup TERM INT EXIT
11
${TARGET_PREFIX} rm -f /var/log/kern.log
12
${TARGET_PREFIX} restart rsyslog
13
${TARGET_PREFIX} sudo -iu phablet start susblock
15
#Turn off the USB port for this device
16
ncd_usb.py -u http://qa-relay-control -b 0 -r 0 off
18
#Turn on the USB port for this device
19
ncd_usb.py -u http://qa-relay-control -b 0 -r 0 on
20
${TARGET_PREFIX} sudo -iu phablet stop susblock
21
${TARGET_PREFIX} /tmp/suspend-blocker/suspend-blocker -rbH -o /tmp/results/kern.json /var/log/kern.log
22
${TARGET_PREFIX} cp /var/log/kern.log /tmp/results