Merge lp:~liuyq0307/lava-android-test/extend-wifi-wait-time into lp:lava-android-test

Proposed by Yongqin Liu
Status: Merged
Merged at revision: 190
Proposed branch: lp:~liuyq0307/lava-android-test/extend-wifi-wait-time
Merge into: lp:lava-android-test
Diff against target: 21 lines (+4/-2)
1 file modified
lava_android_test/test_definitions/hostshells/connect-lab-wifi.sh (+4/-2)
To merge this branch: bzr merge lp:~liuyq0307/lava-android-test/extend-wifi-wait-time
Reviewer Review Type Date Requested Status
Michael Hudson-Doyle (community) Approve
vishal Pending
Review via email: mp+118305@code.launchpad.net

Description of the change

extend the wait after triggered the wifi enable command.
because some times it will need 2 minutes for origen to make the wifi completely connected

To post a comment you must log in.
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Ugly but necessary I guess.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lava_android_test/test_definitions/hostshells/connect-lab-wifi.sh'
2--- lava_android_test/test_definitions/hostshells/connect-lab-wifi.sh 2012-07-10 08:25:11 +0000
3+++ lava_android_test/test_definitions/hostshells/connect-lab-wifi.sh 2012-08-06 06:28:17 +0000
4@@ -83,13 +83,15 @@
5 adb ${ADB_OPTION} shell chmod 660 /data/misc/wifi/wpa_supplicant.conf
6 adb ${ADB_OPTION} shell ls -l /data/misc/wifi/wpa_supplicant.conf
7 adb ${ADB_OPTION} shell service call wifi 13 i32 1
8- sleep 30
9+ #extend the wait time because the time to turn wifi on some devices(like
10+ #Origen) will take a little one
11+ sleep 60
12 for i in {1..30}; do
13 adb ${ADB_OPTION} shell wpa_cli list_networks|grep -E "^\s*[[:digit:]]+\s+${ssid}\s+any\s+\[CURRENT\]"
14 if [ $? -eq 0 ];then
15 break
16 fi
17- sleep 2
18+ sleep 5
19 done
20
21 if [ $i -eq 30 ]; then

Subscribers

People subscribed via source and target branches