1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/testing/marionette/update-smoketests/flash-template.sh Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +#!/bin/bash 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 +# 1.9 +# This script is run by the update smoketest frontend 1.10 + 1.11 +ADB=${ADB:-adb} 1.12 +DEVICE=$1 1.13 + 1.14 +run_adb() { 1.15 + $ADB -s $DEVICE $@ 1.16 +} 1.17 + 1.18 +run_adb push %(flash_zip)s %(sdcard)s/_flash.zip 1.19 +run_adb shell 'echo -n "--update_package=%(sdcard_recovery)s/_flash.zip" > /cache/recovery/command' 1.20 +run_adb reboot recovery