Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(810)

Unified Diff: conmux/drivers/reboot-apc

Issue 4823005: Merge remote branch 'cros/upstream' into tempbranch (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: patch Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/tools/boottool ('k') | frontend/afe/rpc_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: conmux/drivers/reboot-apc
diff --git a/conmux/drivers/reboot-apc b/conmux/drivers/reboot-apc
index e66dc3964fa5f02b81f1fcb26d76b012996d073e..7cdf296fcf3fd80d827ba20761a54f72e2fb331e 100755
--- a/conmux/drivers/reboot-apc
+++ b/conmux/drivers/reboot-apc
@@ -24,6 +24,13 @@ proc arg {_list arg} {
return [shift list]
}
+proc enter_outlet {outlet} {
+ send "\r"
+ expect "> "
+ send $outlet
+ send "\r"
+}
+
set timeout 10
set user {apc}
set pass {apc}
@@ -68,23 +75,29 @@ set timeout 2
expect {
"3- Outlet Control/Configuration" {
send "3\r"
+ enter_outlet $outlet
exp_continue
}
"2- Outlet Control" {
send "2\r"
+ enter_outlet $outlet
+ exp_continue
+ }
+ "2- Outlet Management" {
+ send "2\r"
exp_continue
}
}
-send "\r"
-expect "> "
-send $outlet
-send "\r"
# Here too, if we're just an outlet controller we don't get the option
# to modify configuration
expect {
"1- Control Outlet" {
send "1\r"
}
+ "1- Outlet Control/Configuration" {
+ send "1\r"
+ enter_outlet $outlet
+ }
}
expect "3- Immediate Reboot"
expect "> "
« no previous file with comments | « client/tools/boottool ('k') | frontend/afe/rpc_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698