Merge lp:~sylvain-pineau/checkbox/bug1068799 into lp:checkbox

Proposed by Sylvain Pineau
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 1794
Merged at revision: 1794
Proposed branch: lp:~sylvain-pineau/checkbox/bug1068799
Merge into: lp:checkbox
Diff against target: 34 lines (+4/-2)
2 files modified
debian/changelog (+2/-0)
jobs/power-management.txt.in (+2/-2)
To merge this branch: bzr merge lp:~sylvain-pineau/checkbox/bug1068799
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+130967@code.launchpad.net

Commit message

Fixed path to the /proc acpi lid button in power-management jobs

Description of the change

This MR fixes the path to the /proc acpi lid button in power-management jobs.

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

+1

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-10-22 20:42:58 +0000
3+++ debian/changelog 2012-10-23 09:53:22 +0000
4@@ -58,6 +58,8 @@
5 --memorycard. stress/sdhc and stress/usb run with root privileges to mount
6 all partitions (LP: #1065862)
7 * [FEATURE] jobs/stress.txt.in: Added a wireless hotkey stress test.
8+ * jobs/power-management.txt.in: Fixed path to the /proc acpi lid button
9+ (LP: #1068799)
10
11 [Zygmunt Krynicki]
12 * scripts/removable_storage_watcher - properly detect removal of 'firewire',
13
14=== modified file 'jobs/power-management.txt.in'
15--- jobs/power-management.txt.in 2012-10-09 15:21:35 +0000
16+++ jobs/power-management.txt.in 2012-10-23 09:53:22 +0000
17@@ -91,7 +91,7 @@
18 requires: device.product == 'Lid Switch'
19 command:
20 for i in `seq 20`; do
21- state=`cat /proc/acpi/button/lid/LID/state | awk '{print $2}'`
22+ state=`cat /proc/acpi/button/lid/*/state | awk '{print $2}'`
23 [ "$state" = "closed" ] && exit 0 || sleep 0.5
24 done
25 exit 1
26@@ -109,7 +109,7 @@
27 requires: device.product == 'Lid Switch'
28 command:
29 for i in `seq 20`; do
30- state=`cat /proc/acpi/button/lid/LID/state | awk '{print $2}'`
31+ state=`cat /proc/acpi/button/lid/*/state | awk '{print $2}'`
32 [ "$state" = "open" ] && exit 0 || sleep 0.5
33 done
34 exit 1

Subscribers

People subscribed via source and target branches