reboot/poweroff test logs not in .checkbox folder
Bug #1205194 reported by
Betty Lin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
High
|
Daniel Manrique |
Bug Description
After finished reboot/poweroff test, the logs can not find in .checkbox folder.
They were in /var/log
It will be better all checkbox test logs can save in .checkbox folder.
And all logs can be backup then.
checkbox version:
checkbox 0.16.6+
checkbox-
Related branches
lp:~roadmr/checkbox/1205194-pm_test-log-dir
- Zygmunt Krynicki (community): Approve
-
Diff: 37 lines (+6/-2)2 files modifiedcheckbox-old/debian/changelog (+2/-0)
checkbox-old/jobs/stress.txt.in (+4/-2)
Changed in checkbox: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Hi Betty,
the pm_test script defaults to saving the logs in /var/log (see scripts/pm_test, line 755) but only if the --log-dir option is not given.
The functional tests seem to be correct:
name: power-managemen t/reboot $CHECKBOX_ DATA
command: pm_test reboot --log-level=debug --log-dir=
name: power-managemen t/poweroff $CHECKBOX_ DATA
command: pm_test poweroff --log-level=debug --log-dir=
However the stress ones do not have this, so they will save the logs in /var/log.
name: stress/reboot
command: pm_test -r 100 --silent --log-level=notset reboot
name: stress/poweroff
command: pm_test -r 100 --silent --log-level=notset poweroff
Could you just confirm that the stress/reboot and stress/poweroff are the ones giving problems?
Regardless, I'll have a fix proposed in a moment, because this is clearly wrong so it needs to be fixed.
Thanks!