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
=== modified file 'debian/changelog'
--- debian/changelog 2012-10-22 20:42:58 +0000
+++ debian/changelog 2012-10-23 09:53:22 +0000
@@ -58,6 +58,8 @@
58 --memorycard. stress/sdhc and stress/usb run with root privileges to mount58 --memorycard. stress/sdhc and stress/usb run with root privileges to mount
59 all partitions (LP: #1065862)59 all partitions (LP: #1065862)
60 * [FEATURE] jobs/stress.txt.in: Added a wireless hotkey stress test.60 * [FEATURE] jobs/stress.txt.in: Added a wireless hotkey stress test.
61 * jobs/power-management.txt.in: Fixed path to the /proc acpi lid button
62 (LP: #1068799)
6163
62 [Zygmunt Krynicki]64 [Zygmunt Krynicki]
63 * scripts/removable_storage_watcher - properly detect removal of 'firewire',65 * scripts/removable_storage_watcher - properly detect removal of 'firewire',
6466
=== modified file 'jobs/power-management.txt.in'
--- jobs/power-management.txt.in 2012-10-09 15:21:35 +0000
+++ jobs/power-management.txt.in 2012-10-23 09:53:22 +0000
@@ -91,7 +91,7 @@
91requires: device.product == 'Lid Switch'91requires: device.product == 'Lid Switch'
92command:92command:
93 for i in `seq 20`; do93 for i in `seq 20`; do
94 state=`cat /proc/acpi/button/lid/LID/state | awk '{print $2}'`94 state=`cat /proc/acpi/button/lid/*/state | awk '{print $2}'`
95 [ "$state" = "closed" ] && exit 0 || sleep 0.595 [ "$state" = "closed" ] && exit 0 || sleep 0.5
96 done96 done
97 exit 197 exit 1
@@ -109,7 +109,7 @@
109requires: device.product == 'Lid Switch'109requires: device.product == 'Lid Switch'
110command:110command:
111 for i in `seq 20`; do111 for i in `seq 20`; do
112 state=`cat /proc/acpi/button/lid/LID/state | awk '{print $2}'`112 state=`cat /proc/acpi/button/lid/*/state | awk '{print $2}'`
113 [ "$state" = "open" ] && exit 0 || sleep 0.5113 [ "$state" = "open" ] && exit 0 || sleep 0.5
114 done114 done
115 exit 1115 exit 1

Subscribers

People subscribed via source and target branches