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

Unified Diff: build/android/buildbot_functions.sh

Issue 10837180: Added reboot phone step to android testers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved reboot to before tests Created 8 years, 4 months 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 | « build/android/adb_device_functions.sh ('k') | build/android/buildbot_fyi_tester.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+ )
+}
« no previous file with comments | « build/android/adb_device_functions.sh ('k') | build/android/buildbot_fyi_tester.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698