Merge lp:~brendan-donegan/checkbox/bug1049595_logs_in_checkbox_data into lp:checkbox

Proposed by Brendan Donegan
Status: Merged
Merged at revision: 1661
Proposed branch: lp:~brendan-donegan/checkbox/bug1049595_logs_in_checkbox_data
Merge into: lp:checkbox
Diff against target: 37 lines (+5/-0)
3 files modified
debian/changelog (+3/-0)
jobs/cpu.txt.in (+1/-0)
jobs/stress.txt.in (+1/-0)
To merge this branch: bzr merge lp:~brendan-donegan/checkbox/bug1049595_logs_in_checkbox_data
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+123960@code.launchpad.net

Description of the change

cpu/frequency_governors and stress/graphics tests were attempting to use CHECKBOX_DATA in their commands. If the command is run as root then it is necessary to specify CHECKBOX_DATA in the environment field for the value to be passed through to the sudo environment.

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

+1

Thanks for teaching me about it

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-09-12 12:54:24 +0000
3+++ debian/changelog 2012-09-12 13:33:23 +0000
4@@ -77,6 +77,9 @@
5 * scripts/frequency_governors_test - Ensure that check for difference in
6 expected and actual speedup only fails if the actual speedup is less than
7 the expected speedup (LP: #999547)
8+ * jobs/cpu.txt.in, jobs/stress.txt.in - add environ field containing
9+ CHECKBOX_DATA to allow that environment variable to be used in the command
10+ (LP: #1049595)
11
12 [Sylvain Pineau]
13 * jobs/suspend.txt.in: Fixed suspend/suspend_advanced dependencies to avoid
14
15=== modified file 'jobs/cpu.txt.in'
16--- jobs/cpu.txt.in 2012-08-13 07:15:53 +0000
17+++ jobs/cpu.txt.in 2012-09-12 13:33:23 +0000
18@@ -4,6 +4,7 @@
19 package.name == 'linux'
20 package.name == 'fwts'
21 user: root
22+environ: CHECKBOX_DATA
23 command: fwts_test -c -l ${CHECKBOX_DATA}/scaling_test.log
24 _description:
25 Test the CPU scaling capabilities using Firmware Test Suite (fwts cpufreq).
26
27=== modified file 'jobs/stress.txt.in'
28--- jobs/stress.txt.in 2012-09-12 11:41:55 +0000
29+++ jobs/stress.txt.in 2012-09-12 13:33:23 +0000
30@@ -132,6 +132,7 @@
31 requires:
32 package.name == 'x11-apps'
33 user: root
34+environ: CHECKBOX_DATA
35 command: graphics_stress_test -d -o $CHECKBOX_DATA/graphics-stress-results && echo "Graphics Stress Test completed successfully" || echo "Graphics Stress Test completed, but there are errors. Please see the log $CHECKBOX_DATA/graphics-stress-results for details" && false
36 _description:
37 Run the graphics stress test. This test can take a few minutes.

Subscribers

People subscribed via source and target branches