Created
March 20, 2013 19:11
-
-
Save bobsilverberg/5207542 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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