Index: build/android/buildbot_functions.sh |
diff --git a/build/android/buildbot_functions.sh b/build/android/buildbot_functions.sh |
index f5aabdc694979d93151ee13d396f64c4eb0890ee..cb72dd0c9b3d320d9a600fb3b1624a15ea1ce252 100755 |
--- a/build/android/buildbot_functions.sh |
+++ b/build/android/buildbot_functions.sh |
@@ -290,3 +290,18 @@ function bb_extract_build { |
return $extract_exitcode |
) |
} |
+ |
+# Reboot all phones after successful run and wait for them to start back up |
bulach
2012/08/10 11:30:59
nit: s/after successful run //
|
+# Do not break build if a phone fails to restart |
+function bb_reboot_phones { |
+ echo "@@@BUILD_STEP Rebooting phones@@@" |
+ ( |
+ set +e |
+ cd $CHROME_SRC/build/android/pylib; |
+ for DEVICE in $(adb_get_devices); do |
+ python -c "import android_commands;\ |
+ android_commands.AndroidCommands(device='$DEVICE').Reboot(True)" & |
+ done |
+ wait |
+ ) |
+} |