47
47
[ -z $ANDROID_SERIAL ] || ADBOPTS="-s $ANDROID_SERIAL"
49
# If we are not in the utah group, then we don't have permissions
50
# for /var/lib/utah, so run under sudo
51
if ! groups |grep -q utah ; then
53
sudo TARGET_PREFIX="${TARGET_PREFIX}" PATH="${PATH}" \
58
--results-dir "${RESDIR}" \
59
--skip-install --skip-network --skip-utah \
61
--pull /home/phablet/.cache/upstart \
62
--pull /tmp/xmlresults \
63
--pull /var/log/syslog \
64
--pull /var/log/kern.log \
65
--pull /var/log/upstart/whoopsie.log \
67
-l "${TESTSUITE_HOST}/master.run"
69
TARGET_PREFIX="${TARGET_PREFIX}" PATH="${PATH}" \
74
--results-dir "${RESDIR}" \
75
--skip-install --skip-network --skip-utah \
77
--pull /home/phablet/.cache/upstart \
78
--pull /tmp/xmlresults \
79
--pull /var/log/syslog \
80
--pull /var/log/kern.log \
81
--pull /var/log/upstart/whoopsie.log \
83
-l "${TESTSUITE_HOST}/master.run"
49
sudo TARGET_PREFIX=$TARGET_PREFIX PATH="${PATH}" ${UTAH_PHABLET_CMD} \
52
--results-dir ${RESDIR} \
53
--skip-install --skip-network --skip-utah \
55
--pull /home/phablet/.cache/upstart \
56
--pull /tmp/xmlresults \
58
-l ${TESTSUITE_HOST}/master.run
86
60
# make sure the user running this script can remove its artifacts.
87
# only run this if we had to run under sudo
88
if [ "${SUDO}" = "sudo" ] ; then
89
sudo chown -R "${USER}" ${RESDIR}
61
sudo chown -R `whoami` ${RESDIR}
131
102
adb wait-for-device
132
103
phablet-network --skip-setup -t 90s
133
adb shell sudo powerd-cli active &
104
adb shell powerd-cli active &
135
adb shell sudo powerd-cli display on &
106
adb shell powerd-cli display on &
138
109
echo "SKIPPING phone reboot..."
141
${BASEDIR}/utils/host/adb-shell "sudo aa-clickhook -f --include=/usr/share/autopilot-touch/apparmor/click.rules"
112
${BASEDIR}/utils/host/adb-shell "aa-clickhook -f --include=/usr/share/autopilot-touch/apparmor/click.rules"
143
114
echo "launching test from the host...."
145
adb shell 'sudo rm -f /var/crash/*'
116
adb shell 'rm -f /var/crash/*'
147
118
if ! `grep "^errors: [!0]" < $UTAHFILE >/dev/null` ; then
148
119
echo "errors found"