~pwlars/ubuntu-test-cases/krillin-recovery

« back to all changes in this revision

Viewing changes to scripts/provision.sh

  • Committer: Chris Johnston
  • Date: 2013-08-30 17:40:26 UTC
  • mto: (19.1.1 touch)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: chrisjohnston@ubuntu.com-20130830174026-47dkp6obl6ub14uo
Add smoke-touch-apps tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
## This is the script jenkins should run to provision a device in the lab
 
4
## Intersting environment variables that must be set:
 
5
##  ANDROID_SERIAL - specify another android device
 
6
##  NETWORK_FILE - an alternative network file if you aren't in the lab
 
7
##  TOUCH_IMAGE=--ubuntu-bootstrap   (provision with read-only system image)
 
8
 
 
9
set -e
 
10
set -x
 
11
 
 
12
BASEDIR=$(dirname $(readlink -f $0))
 
13
 
 
14
RESDIR=`pwd`/clientlogs
 
15
UTAH_PHABLET_CMD="${UTAH_PHABLET_CMD-/usr/share/utah/examples/run_utah_phablet.py}"
 
16
 
 
17
ANDROID_SERIAL="${ANDROID_SERIAL-015d1884b20c1c0f}"  #doanac's nexus7 at home
 
18
NETWORK_FILE="${NETWORK_FILE-/home/ubuntu/magners-wifi}"
 
19
 
 
20
rm -rf clientlogs
 
21
mkdir clientlogs
 
22
 
 
23
${UTAH_PHABLET_CMD} -s ${ANDROID_SERIAL} --results-dir ${RESDIR} --network-file=${NETWORK_FILE} ${TOUCH_IMAGE}
 
24
 
 
25
# get our target-based utilities into our PATH
 
26
adb -s ${ANDROID_SERIAL} push ${BASEDIR}/../utils/target /usr/local/bin/