the summary() in bin/pm_test.py missing some test cases condition when QA runs a bigger test plan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Expired
|
High
|
jeremyszu | ||
OEM Priority Project |
New
|
Undecided
|
Unassigned |
Bug Description
When a checkbox session contains many pm_test calls[1], then it will append the "Completed S3 cycle(s) \n" and "Completed s2idle cycle(s) \n" to the same path (e.g. --log=/
When the second (or later) pm_test be called, it will count previous fwts logs.
```
```
In the case that Stella met, it shows:
```
[Actual result]
Stress_
Log:Found 126 occurrences of S3/S2idle. Expected 90
```
The potential solution is to create fwts-cmd.log per test case or check the timestamp[2] whether inside the range.
Feel free to find the detail logs on https:/
[1] https:/
[2] "This test run on 06/12/21 at 22:21:08 on host Linux u 5.14.0-1007-oem #7-Ubuntu"
tags: | added: oem-priority originate-from-1953597 stella |
Changed in plainbox-provider-checkbox: | |
assignee: | nobody → jeremyszu (os369510) |
importance: | Undecided → High |
status: | New → Triaged |
status: | Triaged → Confirmed |
tags: | added: cbox-16 |
Copied the comment from private bug:
``` ======= ======= ======= ======= Iteration 1 ======= ======= ======= ======= ====== ======= ======= ======= ======= = Iteration 2 ======= ======= ======= ======= ====== ======= ======= ======= ======= == Iteration 3 ======= ======= ======= ======= ====== ======= ======= ======= ======= == Iteration 4 ======= ======= ======= ======= ====== py.desktop[ 1529]: [Desktop Entry] py.desktop[ 1529]: Name=reboot test py.desktop[ 1529]: Comment=Verify reboot works properly py.desktop[ 1529]: Exec=sudo /usr/bin/python3 /usr/lib/ plainbox- provider- checkbox/ bin/pm_ test.py -r 0 -w 0 --hardware-delay 30 --pm-delay 5 --min-pm-time 0 --max-pm-time 300 --append --to py.desktop[ 1529]: Type=Application py.desktop[ 1529]: X-GNOME- Autostart- enabled= true py.desktop[ 1529]: Hidden=false py.desktop[ 1529]: INFO reboot operations remaining: 1 py.desktop[ 1529]: INFO Reboot time: 0:27:46.401842 py.desktop[ 1529]: INFO Running suspend/resume cycles py.desktop[ 1529]: DEBUG Executing: 'checkbox- support- fwts_test --log=/ var/tmp/ checkbox- ng/sessions/ session_ title-2021- 12-06T10. 25.57.session/ session- share/fwts -s s3 --s3-device-check ======= ======= ======= ======= == Iteration 1 ======= ======= ======= ======= ====== ======= ======= ======= ======= == Iteration 2 ======= ======= ======= ======= ====== ======= ======= ======= ======= == Iteration 3 ======= ======= ======= ======= ====== ======= ======= ======= ======= == Iteration 4 ======= ======= ======= ======= ====== ======= ======= ======= ======= == Iteration 5 ======= ======= ======= ======= ====== ======= ======= ======= ======= == Iteration 6 ======= ======= ======= ======= ====== ======= ======= ======= ======= == Iteration 7 ======= ======= ======= ======= ======
There is no log, the log been cut.
```
1:=====
9:This test run on 06/12/21 at 05:36:14 on host Linux u 5.14.0-1007-oem #7-Ubuntu
35:Completed S3 cycle(s)
72:====
80:This test run on 06/12/21 at 05:37:08 on host Linux u 5.14.0-1007-oem #7-Ubuntu
106:Completed S3 cycle(s)
143:===
151:This test run on 06/12/21 at 05:38:02 on host Linux u 5.14.0-1007-oem #7-Ubuntu
177:Completed S3 cycle(s)
214:===
222:This test run on 06/12/21 at 05:38:56 on host Linux u 5.14.0-1007-oem #7-Ubuntu
...
```
Dec 06 06:22:13 u pm_test.
Dec 06 06:22:13 u pm_test.
Dec 06 06:22:13 u pm_test.
Dec 06 06:22:13 u pm_test.
Dec 06 06:22:13 u pm_test.
Dec 06 06:22:13 u pm_test.
Dec 06 06:22:13 u pm_test.
Dec 06 06:22:13 u pm_test.
Dec 06 06:22:13 u pm_test.
Dec 06 06:22:13 u pm_test.
Dec 06 06:22:13 u pm_test.
```
241:===
249:This test run on 06/12/21 at 05:54:27 on host Linux u 5.14.0-1007-oem #7-Ubuntu
277:Completed S3 cycle(s)
315:===
323:This test run on 06/12/21 at 05:55:03 on host Linux u 5.14.0-1007-oem #7-Ubuntu
349:Completed S3 cycle(s)
386:===
394:This test run on 06/12/21 at 05:55:57 on host Linux u 5.14.0-1007-oem #7-Ubuntu
420:Completed S3 cycle(s)
457:===
465:This test run on 06/12/21 at 05:56:51 on host Linux u 5.14.0-1007-oem #7-Ubuntu
491:Completed S3 cycle(s)
528:===
536:This test run on 06/12/21 at 05:57:45 on host Linux u 5.14.0-1007-oem #7-Ubuntu
562:Completed S3 cycle(s)
599:===
607:This test run on 06/12/21 at 05:58:39 on host Linux u 5.14.0-1007-oem #7-Ubuntu
633:Completed S3 cycle(s)
670:===
678:This test run on 06/12/21 at 05:59:33 on host L...