pm_test script error leading to uncomputable suspend/resume times

Bug #1834127 reported by Pierre Equoy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
High
Pierre Equoy

Bug Description

When running job power-management/suspend_30_cycles_with_reboots, which executes script pm_test, we get the following logs in the session directory:

- fwts.log: output of all the consecutive calls to fwts, including all the suspend/resume timings without any issue
- fwts.log.log: a file that contains only "================================= Iteration x ==================================" 30 times
- pm_test.reboot.3.log: the log file generated by the job that should contain, among other things, the average time to sleep/resume.

Even though the data is present in fwts.log, in pm_test.reboot.3.log we see:

Average time to sleep: N/A
Average time to resume: N/A

Because of this, the job `power-management/suspend-30-cycles-time-checks-with-reboots` fail.

After investigation, it looks like the culprit is the pm_test script itself that adds a ".log" extension to a script call that already adds this extension. This creates the file fwts.log.log and, more importantly, prevents the proper retrieval of the suspend and resume times to compute the average!

Revision history for this message
Pierre Equoy (pieq) wrote :
Changed in plainbox-provider-checkbox:
assignee: nobody → Pierre Equoy (pieq)
status: New → Triaged
importance: Undecided → High
status: Triaged → In Progress
Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
status: In Progress → Fix Committed
milestone: none → 0.49.0
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.