Skip to content

Instantly share code, notes, and snippets.

@bobsilverberg
Created March 20, 2013 19:11
Show Gist options
  • Select an option

  • Save bobsilverberg/5207542 to your computer and use it in GitHub Desktop.

Select an option

Save bobsilverberg/5207542 to your computer and use it in GitHub Desktop.
#!/bin/bash
COUNTER=0
while [ $COUNTER -lt 50 ]; do
echo The counter is $COUNTER
cd b2g-distro
./flash.sh
cd ..
sleep 60
echo -e "user_pref('marionette.force-local', true);\nuser_pref('ril.debugging.enabled', true);\n" > user.js
adb push user.js /data/local
adb reboot
sleep 70
adb forward tcp:2828 tcp:2828
gaiatest --address=localhost:2828 --testvars=mine/b2g.gaia.json gaiatest/tests/browser/test_browser_cell_data.py
rc=$?
if [[ $rc != 0 ]] ; then
exit $rc
fi
let COUNTER=COUNTER+1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment