fwts_test can generate incorrect data for suspend-time log
Bug #1188221 reported by
Brendan Donegan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
High
|
Brendan Donegan |
Bug Description
The fwts_test script writes a log for recording the amount of time taken to suspend the system and to resume from that suspend. This is calculated based on the timestamps in /var/log/syslog. Unfortunately an assumption it makes can be wrong. It expects the last thing it sees before the resume has completed to be:
"PM: Finishing wakeup."
Sometimes this is not the case though, and we get a negative number for the wakeup time.
It also seems this can happen for calculating the time taken to suspend.
Related branches
lp:~bladernr/checkbox/1188221-fix-sleep-tests
- Daniel Manrique (community): Approve
-
Diff: 48 lines (+6/-3)3 files modifiedcheckbox-old/debian/changelog (+3/-0)
checkbox-old/scripts/fwts_test (+1/-1)
checkbox-old/scripts/sleep_test (+2/-2)
Changed in checkbox: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Brendan Donegan (brendan-donegan) |
tags: | added: scripts |
Changed in checkbox: | |
status: | In Progress → Fix Committed |
Changed in checkbox: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Need copies of the time log and syslog for failing scenarios