Merge lp:~cypressyew/checkbox/fix-pwr-log-attach into lp:checkbox

Proposed by Po-Hsu Lin
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 3090
Merged at revision: 3091
Proposed branch: lp:~cypressyew/checkbox/fix-pwr-log-attach
Merge into: lp:checkbox
Diff against target: 20 lines (+2/-2)
1 file modified
providers/plainbox-provider-checkbox/jobs/power-management.txt.in (+2/-2)
To merge this branch: bzr merge lp:~cypressyew/checkbox/fix-pwr-log-attach
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+223892@code.launchpad.net

Description of the change

I tried to find the .tgz file, to see where it is after the poweroff/reboot-log-attach job. But I couldn't find them :(

So this fix is simple, just explicitly assign where the .tgz file would go.

Maybe we could do something else other than cat the .tgz file, I'm not sure why we did this.

Output from the io-logs
$ cat 2013.com.canonical.certification__power-management_poweroff-log-attach.stderr
tar: Removing leading `/' from member names
$ cat 2013.com.canonical.certification__power-management_poweroff-log-attach.stdout
/home/ubuntu/.cache/plainbox/sessions/pbox-6gbn_37h.session/CHECKBOX_DATA/pm_test.poweroff.1.log
(garbled message, you don't want to see)

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

Makes sense. The cwd of each job is wherever the use runs the app from. I think we should start to synthesize a temporary directory for each job invocation and be very vocal about any files left over (or perhaps created, as nothing should be created in the current directory.

review: Approve
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'providers/plainbox-provider-checkbox/jobs/power-management.txt.in'
2--- providers/plainbox-provider-checkbox/jobs/power-management.txt.in 2014-06-17 15:31:12 +0000
3+++ providers/plainbox-provider-checkbox/jobs/power-management.txt.in 2014-06-20 10:29:37 +0000
4@@ -53,7 +53,7 @@
5
6 plugin: attachment
7 id: power-management/poweroff-log-attach
8-command: tar cvfz power-management_poweroff.tgz $PLAINBOX_SESSION_SHARE/*poweroff.1.log && cat $PLAINBOX_SESSION_SHARE/power-management_poweroff.tgz
9+command: tar cvfz ${PLAINBOX_SESSION_SHARE}/power-management_poweroff.tgz ${PLAINBOX_SESSION_SHARE}/*poweroff.1.log && cat ${PLAINBOX_SESSION_SHARE}/power-management_poweroff.tgz
10 _description:
11 This will attach any logs from the power-management/poweroff test to the results.
12
13@@ -78,7 +78,7 @@
14
15 plugin: attachment
16 id: power-management/reboot-log-attach
17-command: tar cvfz power-management_reboot.tgz $PLAINBOX_SESSION_SHARE/*reboot.1.log && cat $PLAINBOX_SESSION_SHARE/power-management_reboot.tgz
18+command: tar cvfz ${PLAINBOX_SESSION_SHARE}/power-management_reboot.tgz ${PLAINBOX_SESSION_SHARE}/*reboot.1.log && cat ${PLAINBOX_SESSION_SHARE}/power-management_reboot.tgz
19 _description:
20 This will attach any logs from the power-management/reboot test to the results.
21

Subscribers

People subscribed via source and target branches