Merge lp:~cr3/checkbox/story554_V2 into lp:~sylvain-pineau/checkbox/story554_V2

Proposed by Marc Tardif
Status: Merged
Merged at revision: 1389
Proposed branch: lp:~cr3/checkbox/story554_V2
Merge into: lp:~sylvain-pineau/checkbox/story554_V2
Diff against target: 131 lines (+17/-17)
4 files modified
debian/changelog (+1/-1)
jobs/stress.txt.in (+12/-12)
scripts/pm_log_check (+3/-3)
scripts/pm_test (+1/-1)
To merge this branch: bzr merge lp:~cr3/checkbox/story554_V2
Reviewer Review Type Date Requested Status
Sylvain Pineau Approve
Review via email: mp+106053@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

All changes can be merged, pm_log_check is really a better name and adding the log_filename will allow pm_check to be used standalone easily.

Approved

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-05-16 15:40:19 +0000
3+++ debian/changelog 2012-05-16 20:54:20 +0000
4@@ -19,7 +19,7 @@
5 to results.
6
7 [Sylvain Pineau]
8- * scripts/pm_check: added a slightly modified version of OEM team's pm_check.py
9+ * scripts/pm_log_check: added a slightly modified version of OEM team's pm_check.py
10 script to analyze pm_test logs
11 * jobs/stress.txt.in: add OEM team's stress tests (including reboot and poweroff)
12 and log analysis jobs
13
14=== modified file 'jobs/stress.txt.in'
15--- jobs/stress.txt.in 2012-05-16 15:40:19 +0000
16+++ jobs/stress.txt.in 2012-05-16 20:54:20 +0000
17@@ -20,10 +20,10 @@
18 This is an automated stress test that will force the system to hibernate/resume for 30 cycles
19
20 plugin: attachment
21-name: power-management/hibernate-30-cycles-log-attach
22+name: power-management/hibernate-30-cycle-log-attach
23 command: [ -e $CHECKBOX_DATA/hibernate_30_cycles.log ] && cat $CHECKBOX_DATA/hibernate_30_cycles.log
24 _description:
25- Attaches the log from the 30 cycles Hibernate/Resume test if it exists
26+ Attaches the log from the 30 cycle Hibernate/Resume test if it exists
27
28 plugin: shell
29 name: power-management/suspend_30_cycles
30@@ -36,10 +36,10 @@
31 This is an automated stress test that will force the system to suspend/resume for 30 cycles.
32
33 plugin: attachment
34-name: power-management/suspend-30-cycles-log-attach
35+name: power-management/suspend-30-cycle-log-attach
36 command: [ -e $CHECKBOX_DATA/suspend_30_cycles.log ] && cat $CHECKBOX_DATA/suspend_30_cycles.log
37 _description:
38- Attaches the log from the 30 cycles Suspend/Resume test if it exists
39+ Attaches the log from the 30 cycle Suspend/Resume test if it exists
40
41 plugin: shell
42 name: stress/hibernate_250_cycles
43@@ -52,10 +52,10 @@
44 This is an automated stress test that will force the system to hibernate/resume for 250 cycles
45
46 plugin: attachment
47-name: stress/hibernate-250-cycles-log-attach
48+name: stress/hibernate-250-cycle-log-attach
49 command: [ -e $CHECKBOX_DATA/hibernate_250_cycles.log ] && cat $CHECKBOX_DATA/hibernate_250_cycles.log
50 _description:
51- Attaches the log from the 250 cycles Hibernate/Resume test if it exists
52+ Attaches the log from the 250 cycle Hibernate/Resume test if it exists
53
54 plugin: shell
55 name: stress/suspend_250_cycles
56@@ -68,10 +68,10 @@
57 This is an automated stress test that will force the system to suspend/resume for 250 cycles.
58
59 plugin: attachment
60-name: stress/suspend-250-cycles-log-attach
61+name: stress/suspend-250-cycle-log-attach
62 command: [ -e $CHECKBOX_DATA/suspend_250_cycles.log ] && cat $CHECKBOX_DATA/suspend_250_cycles.log
63 _description:
64- Attaches the log from the 250 cycles Suspend/Resume test if it exists
65+ Attaches the log from the 250 cycle Suspend/Resume test if it exists
66
67 plugin: shell
68 name: stress/reboot
69@@ -106,23 +106,23 @@
70 plugin: shell
71 name: stress/reboot_check
72 depends: stress/reboot
73-command: pm_check --log-level=notset $CHECKBOX_DATA/*reboot.100.log
74+command: pm_log_check --log-level=notset $CHECKBOX_DATA/*reboot.100.log $CHECKBOX_DATA/pm_log_check_reboot.100.log
75 _description: Check logs for the stress reboot (100 cycles) test case
76
77 plugin: attachment
78 name: stress/reboot_check_log
79 depends: stress/reboot_check
80 command:
81- tar cvfz stress_reboot_check.tgz $CHECKBOX_DATA/*check*reboot.100.log && cat $CHECKBOX_DATA/stress_reboot_check.tgz
82+ tar cvfz stress_reboot_check.tgz $CHECKBOX_DATA/pm_log_check_reboot.100.log && cat $CHECKBOX_DATA/stress_reboot_check.tgz
83
84 plugin: shell
85 name: stress/poweroff_check
86 depends: stress/poweroff
87-command: pm_check --log-level=notset $CHECKBOX_DATA/*poweroff.100.log
88+command: pm_log_check --log-level=notset $CHECKBOX_DATA/*poweroff.100.log $CHECKBOX_DATA/pm_log_check_poweroff.100.log
89 _description: Check logs for the stress poweroff (100 cycles) test case
90
91 plugin: attachment
92 name: stress/poweroff_check_log
93 depends: stress/poweroff_check
94 command:
95- tar cvfz stress_poweroff_check.tgz $CHECKBOX_DATA/*check*poweroff.100.log && cat $CHECKBOX_DATA/stress_poweroff_check.tgz
96+ tar cvfz stress_poweroff_check.tgz $CHECKBOX_DATA/pm_log_check_poweroff.100.log && cat $CHECKBOX_DATA/stress_poweroff_check.tgz
97
98=== renamed file 'scripts/pm_check' => 'scripts/pm_log_check'
99--- scripts/pm_check 2012-05-16 15:40:19 +0000
100+++ scripts/pm_log_check 2012-05-16 20:54:20 +0000
101@@ -236,7 +236,9 @@
102 """
103 parser = ArgumentParser(description='Check power management test case results')
104 parser.add_argument('input_log_filename', metavar='log_filename',
105- help='Path to the log file that should be used to perform the check')
106+ help='Path to the input log file on which to perform the check')
107+ parser.add_argument('output_log_filename', metavar='log_filename',
108+ help='Path to the output log file for the results of the check')
109 log_levels = ['notset', 'debug', 'info', 'warning', 'error', 'critical']
110 parser.add_argument('--log-level', dest='log_level', default='info',
111 choices=log_levels,
112@@ -246,8 +248,6 @@
113 args = parser.parse_args()
114 args.log_level = getattr(logging, args.log_level.upper())
115
116- args.output_log_filename = os.path.abspath(args.input_log_filename).replace('pm_test', os.path.basename(__file__))
117-
118 return args
119
120
121
122=== modified file 'scripts/pm_test'
123--- scripts/pm_test 2012-05-16 15:40:19 +0000
124+++ scripts/pm_test 2012-05-16 20:54:20 +0000
125@@ -441,7 +441,7 @@
126 # Check kernel logs using firmware test suite
127 command = Command('fwts -r stdout klog dmesg_common oops').run()
128 if command.process.returncode != 0:
129- # Don't abort the test loop, errors can be retrieved by pm_check
130+ # Don't abort the test loop, errors can be retrieved by pm_log_check
131 logging.error('Problem found in logs by fwts')
132
133

Subscribers

People subscribed via source and target branches

to all changes: