~joetalbott/ubuntu-test-cases/memevent_browser

« back to all changes in this revision

Viewing changes to phone-app-connected-autopilot/setup.sh

  • Committer: Andy Doan
  • Date: 2013-08-23 23:40:53 UTC
  • mfrom: (79.1.5 simplify-touch)
  • Revision ID: andy.doan@canonical.com-20130823234053-x011z4a4qnz05txx
simplify touch test setup logic

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
5
 
PKGS="autopilot-touch phone-app-connected-autopilot"
6
 
 
7
 
MISSING=0
8
 
dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
9
 
if [ $MISSING -eq 1 ] ; then
10
 
        apt-get install -yq --force-yes $PKGS
11
 
else
12
 
        echo "setup not needed"
13
 
fi
14
5
# we have issues with running the test too soon, this is a hack:
15
6
echo "SLEEPING 60 TO HELP MAKE SURE PHONE IS READY"
16
7
sleep 60
26
17
./sms_self.py
27
18
sleep 10s  # try and let the message come through
28
19
 
29
 
/usr/local/bin/unlock_screen.sh
 
20
PKGS="phone-app-connected-autopilot" prepare-autopilot-test.sh