Merge lp:~doanac/ubuntu-test-cases/simplify-touch into lp:ubuntu-test-cases/smoke-touch-apps

Proposed by Andy Doan
Status: Merged
Merged at revision: 80
Proposed branch: lp:~doanac/ubuntu-test-cases/simplify-touch
Merge into: lp:ubuntu-test-cases/smoke-touch-apps
Diff against target: 694 lines (+54/-348)
46 files modified
calendar-app-autopilot/setup.sh (+0/-14)
calendar-app-autopilot/ts_control (+1/-1)
camera-app-autopilot/setup.sh (+0/-14)
camera-app-autopilot/ts_control (+1/-1)
friends-app-autopilot/setup.sh (+0/-14)
friends-app-autopilot/ts_control (+1/-1)
gallery-app-autopilot/setup.sh (+0/-14)
gallery-app-autopilot/ts_control (+1/-1)
jenkins/jenkins.sh (+12/-15)
jenkins/provision.sh (+4/-3)
mediaplayer-app-autopilot/setup.sh (+0/-14)
mediaplayer-app-autopilot/ts_control (+1/-1)
memevent/setup.sh (+0/-14)
memevent/ts_control (+1/-2)
music-app-autopilot/setup.sh (+0/-14)
music-app-autopilot/ts_control (+1/-1)
notes-app-autopilot/setup.sh (+0/-14)
notes-app-autopilot/ts_control (+1/-1)
phone-app-autopilot/setup.sh (+0/-14)
phone-app-autopilot/ts_control (+1/-1)
phone-app-connected-autopilot/setup.sh (+1/-10)
share-app-autopilot/setup.sh (+0/-14)
share-app-autopilot/ts_control (+1/-1)
ubuntu-calculator-app-autopilot/setup.sh (+0/-14)
ubuntu-calculator-app-autopilot/ts_control (+1/-1)
ubuntu-clock-app-autopilot/setup.sh (+0/-14)
ubuntu-clock-app-autopilot/ts_control (+1/-1)
ubuntu-clock-autopilot/master.run (+0/-15)
ubuntu-clock-autopilot/setup.sh (+0/-14)
ubuntu-clock-autopilot/ts_control (+0/-1)
ubuntu-clock-autopilot/tslist.auto (+0/-4)
ubuntu-docviewer-app-autopilot/setup.sh (+0/-14)
ubuntu-docviewer-app-autopilot/ts_control (+1/-1)
ubuntu-filemanager-app-autopilot/setup.sh (+0/-14)
ubuntu-filemanager-app-autopilot/ts_control (+1/-1)
ubuntu-rssreader-app-autopilot/setup.sh (+0/-14)
ubuntu-rssreader-app-autopilot/ts_control (+1/-1)
ubuntu-terminal-app-autopilot/setup.sh (+0/-14)
ubuntu-terminal-app-autopilot/ts_control (+1/-1)
ubuntu-weather-app-autopilot/setup.sh (+0/-14)
ubuntu-weather-app-autopilot/ts_control (+1/-1)
unity8-autopilot/setup.sh (+1/-9)
utils/target/prepare-autopilot-test.sh (+16/-0)
utils/target/unlock_screen.sh (+2/-6)
webbrowser-app-autopilot/setup.sh (+0/-14)
webbrowser-app-autopilot/ts_control (+1/-1)
To merge this branch: bzr merge lp:~doanac/ubuntu-test-cases/simplify-touch
Reviewer Review Type Date Requested Status
Paul Larson Approve
Javier Collado (community) Approve
Review via email: mp+181695@code.launchpad.net

Description of the change

This is part 1 of a 3 part MP that will get us to where our smoke-touch-apps tests can be run on either the target or from the host. Its mostly just setting up the ground work for the next 2 MPs

To post a comment you must log in.
Revision history for this message
Javier Collado (javier.collado) wrote :

The changes look good and the refactoring of the setup scripts was needed
indeed.

I have a few comments, but they're all related to issues that were already in
the code before this merge request, so I'm just writing them down here to see
what are your thoughts about them:

- Shell scripts arguments
While the scripts are documented and it's clear what environment variables have
to be set to use them, I'd prefer to have arguments, parse them and print the
usage string in case of failure.

- Spaces and tabs mixed
In jenkins.sh it seems that there are some lines that are indented using tabs
and other ones with spaces (and not always the same number of spaces). Being
python my main programming language, I'd prefer to use just 4 spaces per
indentation level.

- adb commands without serial number
Some adb commands don't have a serial number (one of them an adb push in this
merge proposal), neither had the old version of the script, so I guess it
works, but I feel like I'm mising something with regard to what device uses adb
by default.

review: Approve
Revision history for this message
Paul Larson (pwlars) wrote :

+1 this all looks good.

Some random comments (nothing that has to be fixed now):
* Yeah, I had noticed that one time about the fact that we use -s on some adb commands and not other. The -s is actually not needed as long as we have ANDROID_SERIAL exported to the environment. If we ever quit doing that, then we need to use the -s though. We should probably be consistent here, but that's a cleanup thing for another time.
* We can actually remove the workaround (which was previously commented out but left in place by me because we didn't know if we would get asked to turn it back on again) for the ueventd bug. That fix went in *today*! \o/

review: Approve
84. By Andy Doan

fix tabs/spaces in jenkins.sh

Revision history for this message
Andy Doan (doanac) wrote :

On 08/23/2013 05:58 AM, Javier Collado wrote:
> Review: Approve

> - Shell scripts arguments
> While the scripts are documented and it's clear what environment variables have
> to be set to use them, I'd prefer to have arguments, parse them and print the
> usage string in case of failure.

That's a good point. Given all the changes dependent on this change, I
think we should do this in as a follow-on. It would make things nicer
though.

> - Spaces and tabs mixed
> In jenkins.sh it seems that there are some lines that are indented using tabs
> and other ones with spaces (and not always the same number of spaces). Being
> python my main programming language, I'd prefer to use just 4 spaces per
> indentation level.

I converted to tabs. I hate spaces. Guido is a genius for Python but
evil for spaces :)

> - adb commands without serial number
> Some adb commands don't have a serial number (one of them an adb push in this
> merge proposal), neither had the old version of the script, so I guess it
> works, but I feel like I'm mising something with regard to what device uses adb
> by default.

As Paul said, we should probably just remove the -s $ANDROID_SERIAL as a
follow-on.

Revision history for this message
Paul Larson (pwlars) wrote :

> I converted to tabs. I hate spaces. Guido is a genius for Python but
> evil for spaces :)
>
Nooooo! Not tabs, 4 spaces is good and proper. Also, I can give you my vim
rc files that do it automatically and even alert you to pyflakes issues.
I'm being a little pedantic perhaps, but in all seriousness, we should
agree on some coding standards or we'll continue to hit stuff like this

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'calendar-app-autopilot/setup.sh'
2--- calendar-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
3+++ calendar-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
4@@ -1,14 +0,0 @@
5-#!/bin/sh
6-
7-set -e
8-
9-PKGS="autopilot-touch calendar-app-autopilot"
10-
11-MISSING=0
12-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
13-if [ $MISSING -eq 1 ] ; then
14- apt-get install -yq --force-yes $PKGS
15-else
16- echo "setup not needed"
17-fi
18-/usr/local/bin/unlock_screen.sh
19
20=== modified file 'calendar-app-autopilot/ts_control'
21--- calendar-app-autopilot/ts_control 2013-08-01 22:15:03 +0000
22+++ calendar-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
23@@ -1,1 +1,1 @@
24-ts_setup: sh ./setup.sh
25+ts_setup: PKGS=calendar-app-autopilot prepare-autopilot-test.sh
26
27=== removed file 'camera-app-autopilot/setup.sh'
28--- camera-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
29+++ camera-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
30@@ -1,14 +0,0 @@
31-#!/bin/sh
32-
33-set -e
34-
35-PKGS="autopilot-touch camera-app-autopilot"
36-
37-MISSING=0
38-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
39-if [ $MISSING -eq 1 ] ; then
40- apt-get install -yq --force-yes $PKGS
41-else
42- echo "setup not needed"
43-fi
44-/usr/local/bin/unlock_screen.sh
45
46=== modified file 'camera-app-autopilot/ts_control'
47--- camera-app-autopilot/ts_control 2013-07-10 16:48:31 +0000
48+++ camera-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
49@@ -1,1 +1,1 @@
50-ts_setup: sh ./setup.sh
51+ts_setup: PKGS=camera-app-autopilot prepare-autopilot-test.sh
52
53=== removed file 'friends-app-autopilot/setup.sh'
54--- friends-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
55+++ friends-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
56@@ -1,14 +0,0 @@
57-#!/bin/sh
58-
59-set -e
60-
61-PKGS="autopilot-touch friends-app-autopilot"
62-
63-MISSING=0
64-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
65-if [ $MISSING -eq 1 ] ; then
66- apt-get install -yq --force-yes $PKGS
67-else
68- echo "setup not needed"
69-fi
70-/usr/local/bin/unlock_screen.sh
71
72=== modified file 'friends-app-autopilot/ts_control'
73--- friends-app-autopilot/ts_control 2013-07-11 18:39:09 +0000
74+++ friends-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
75@@ -1,1 +1,1 @@
76-ts_setup: sh ./setup.sh
77+ts_setup: PKGS=friends-app-autopilot prepare-autopilot-test.sh
78
79=== removed file 'gallery-app-autopilot/setup.sh'
80--- gallery-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
81+++ gallery-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
82@@ -1,14 +0,0 @@
83-#!/bin/sh
84-
85-set -e
86-
87-PKGS="autopilot-touch gallery-app-autopilot"
88-
89-MISSING=0
90-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
91-if [ $MISSING -eq 1 ] ; then
92- apt-get install -yq --force-yes $PKGS
93-else
94- echo "setup not needed"
95-fi
96-/usr/local/bin/unlock_screen.sh
97
98=== modified file 'gallery-app-autopilot/ts_control'
99--- gallery-app-autopilot/ts_control 2013-07-11 19:41:56 +0000
100+++ gallery-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
101@@ -1,1 +1,1 @@
102-ts_setup: sh ./setup.sh
103+ts_setup: PKGS=gallery-app-autopilot prepare-autopilot-test.sh
104
105=== modified file 'jenkins/jenkins.sh'
106--- jenkins/jenkins.sh 2013-08-16 19:34:15 +0000
107+++ jenkins/jenkins.sh 2013-08-23 23:40:38 +0000
108@@ -33,10 +33,10 @@
109 BUILDID=`cat ${RESDIR}/media-info | awk '{ print $(NF)}' | sed -e 's/(//' -e 's/)//'`
110 echo "= TOUCH BUILD DATE:$BUILDID"
111
112- adb shell "top -n1 -b" > ${RESDIR}/top.log
113+ adb shell "top -n1 -b" > ${RESDIR}/top.log
114
115 set -x
116- adb shell 'rm -f /var/crash/*'
117+ adb shell 'rm -f /var/crash/*'
118 if [ -z $QUICK ] ; then
119 # get the phone in sane place
120 adb -s ${ANDROID_SERIAL} reboot
121@@ -51,31 +51,28 @@
122 echo "SKIPPING phone reboot..."
123 fi
124
125- # push the screen unlocker
126- adb push ${BASEDIR}/unlock_screen/unlock_screen.sh /usr/local/bin
127- adb push ${BASEDIR}/unlock_screen/unlock_screen.py /usr/local/bin
128 # push the runlist over to the test:
129 adb push ${BASEDIR} ${TESTSUITE_TARGET_BASE} &> /dev/null
130 ${UTAH_PHABLET_CMD} \
131 -s ${ANDROID_SERIAL} \
132 --results-dir ${RESDIR} \
133 --skip-install --skip-network --skip-utah \
134- --pull /var/crash \
135+ --pull /var/crash \
136 -l ${TESTSUITE_TARGET}/master.run
137- adb shell 'rm -f /var/crash/*'
138+ adb shell 'rm -f /var/crash/*'
139
140 if ! `grep "^errors: [!0]" < $UTAHFILE >/dev/null` ; then
141- echo "errors found"
142- EXITCODE=1
143+ echo "errors found"
144+ EXITCODE=1
145 fi
146 if ! `grep "^failures: [!0]" < $UTAHFILE >/dev/null` ; then
147- echo "failures found"
148- EXITCODE=2
149+ echo "failures found"
150+ EXITCODE=2
151 fi
152- echo "Results Summary"
153- echo "---------------"
154- egrep '^(errors|failures|passes|fetch_errors):' $UTAHFILE
155- exit $EXITCODE
156+ echo "Results Summary"
157+ echo "---------------"
158+ egrep '^(errors|failures|passes|fetch_errors):' $UTAHFILE
159+ exit $EXITCODE
160 }
161
162 trap cleanup TERM INT EXIT
163
164=== modified file 'jenkins/provision.sh'
165--- jenkins/provision.sh 2013-08-16 16:35:06 +0000
166+++ jenkins/provision.sh 2013-08-23 23:40:38 +0000
167@@ -4,6 +4,7 @@
168 ## Intersting environment variables that must be set:
169 ## ANDROID_SERIAL - specify another android device
170 ## NETWORK_FILE - an alternative network file if you aren't in the lab
171+## TOUCH_IMAGE=--ubuntu-bootstrap (provision with read-only system image)
172
173 set -e
174 set -x
175@@ -16,10 +17,10 @@
176 ANDROID_SERIAL="${ANDROID_SERIAL-015d1884b20c1c0f}" #doanac's nexus7 at home
177 NETWORK_FILE="${NETWORK_FILE-/home/ubuntu/magners-wifi}"
178
179-# Image to use for flashing
180-# Syntax: TOUCH_IMAGE=--ubuntu-bootstrap
181-
182 rm -rf clientlogs
183 mkdir clientlogs
184
185 ${UTAH_PHABLET_CMD} -s ${ANDROID_SERIAL} --results-dir ${RESDIR} --network-file=${NETWORK_FILE} ${TOUCH_IMAGE}
186+
187+# get our target-based utilities into our PATH
188+adb -s ${ANDROID_SERIAL} push ${BASEDIR}/../utils/target /usr/local/bin/
189
190=== removed file 'mediaplayer-app-autopilot/setup.sh'
191--- mediaplayer-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
192+++ mediaplayer-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
193@@ -1,14 +0,0 @@
194-#!/bin/sh
195-
196-set -e
197-
198-PKGS="autopilot-touch mediaplayer-app-autopilot"
199-
200-MISSING=0
201-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
202-if [ $MISSING -eq 1 ] ; then
203- apt-get install -yq --force-yes $PKGS
204-else
205- echo "setup not needed"
206-fi
207-/usr/local/bin/unlock_screen.sh
208
209=== modified file 'mediaplayer-app-autopilot/ts_control'
210--- mediaplayer-app-autopilot/ts_control 2013-07-11 20:00:29 +0000
211+++ mediaplayer-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
212@@ -1,1 +1,1 @@
213-ts_setup: sh ./setup.sh
214+ts_setup: PKGS=mediaplayer-app-autopilot prepare-autopilot-test.sh
215
216=== removed file 'memevent/setup.sh'
217--- memevent/setup.sh 2013-08-07 16:52:12 +0000
218+++ memevent/setup.sh 1970-01-01 00:00:00 +0000
219@@ -1,14 +0,0 @@
220-#!/bin/sh
221-
222-set -e
223-
224-PKGS="autopilot-touch camera-app-autopilot gallery-app-autopilot mediaplayer-app-autopilot webbrowser-app-autopilot"
225-
226-MISSING=0
227-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
228-if [ $MISSING -eq 1 ] ; then
229- apt-get install -yq --force-yes $PKGS
230-else
231- echo "setup not needed"
232-fi
233-/usr/local/bin/unlock_screen.sh
234
235=== modified file 'memevent/ts_control'
236--- memevent/ts_control 2013-08-05 23:23:31 +0000
237+++ memevent/ts_control 2013-08-23 23:40:38 +0000
238@@ -1,2 +1,1 @@
239----
240-ts_setup: ./setup.sh
241+ts_setup: PKGS="camera-app-autopilot gallery-app-autopilot mediaplayer-app-autopilot webbrowser-app-autopilot" prepare-autopilot-test.sh
242
243=== removed file 'music-app-autopilot/setup.sh'
244--- music-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
245+++ music-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
246@@ -1,14 +0,0 @@
247-#!/bin/sh
248-
249-set -e
250-
251-PKGS="autopilot-touch music-app-autopilot"
252-
253-MISSING=0
254-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
255-if [ $MISSING -eq 1 ] ; then
256- apt-get install -yq --force-yes $PKGS
257-else
258- echo "setup not needed"
259-fi
260-/usr/local/bin/unlock_screen.sh
261
262=== modified file 'music-app-autopilot/ts_control'
263--- music-app-autopilot/ts_control 2013-08-01 22:15:03 +0000
264+++ music-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
265@@ -1,1 +1,1 @@
266-ts_setup: sh ./setup.sh
267+ts_setup: PKGS=music-app-autopilot prepare-autopilot-test.sh
268
269=== removed file 'notes-app-autopilot/setup.sh'
270--- notes-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
271+++ notes-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
272@@ -1,14 +0,0 @@
273-#!/bin/sh
274-
275-set -e
276-
277-PKGS="autopilot-touch notes-app-autopilot"
278-
279-MISSING=0
280-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
281-if [ $MISSING -eq 1 ] ; then
282- apt-get install -yq --force-yes $PKGS
283-else
284- echo "setup not needed"
285-fi
286-/usr/local/bin/unlock_screen.sh
287
288=== modified file 'notes-app-autopilot/ts_control'
289--- notes-app-autopilot/ts_control 2013-07-11 20:03:51 +0000
290+++ notes-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
291@@ -1,1 +1,1 @@
292-ts_setup: sh ./setup.sh
293+ts_setup: PKGS=notes-app-autopilot prepare-autopilot-test.sh
294
295=== removed file 'phone-app-autopilot/setup.sh'
296--- phone-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
297+++ phone-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
298@@ -1,14 +0,0 @@
299-#!/bin/sh
300-
301-set -e
302-
303-PKGS="autopilot-touch phone-app-autopilot"
304-
305-MISSING=0
306-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
307-if [ $MISSING -eq 1 ] ; then
308- apt-get install -yq --force-yes $PKGS
309-else
310- echo "setup not needed"
311-fi
312-/usr/local/bin/unlock_screen.sh
313
314=== modified file 'phone-app-autopilot/ts_control'
315--- phone-app-autopilot/ts_control 2013-07-11 20:22:43 +0000
316+++ phone-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
317@@ -1,1 +1,1 @@
318-ts_setup: sh ./setup.sh
319+ts_setup: PKGS=phone-app-autopilot prepare-autopilot-test.sh
320
321=== modified file 'phone-app-connected-autopilot/setup.sh'
322--- phone-app-connected-autopilot/setup.sh 2013-08-16 16:35:06 +0000
323+++ phone-app-connected-autopilot/setup.sh 2013-08-23 23:40:38 +0000
324@@ -2,15 +2,6 @@
325
326 set -e
327
328-PKGS="autopilot-touch phone-app-connected-autopilot"
329-
330-MISSING=0
331-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
332-if [ $MISSING -eq 1 ] ; then
333- apt-get install -yq --force-yes $PKGS
334-else
335- echo "setup not needed"
336-fi
337 # we have issues with running the test too soon, this is a hack:
338 echo "SLEEPING 60 TO HELP MAKE SURE PHONE IS READY"
339 sleep 60
340@@ -26,4 +17,4 @@
341 ./sms_self.py
342 sleep 10s # try and let the message come through
343
344-/usr/local/bin/unlock_screen.sh
345+PKGS="phone-app-connected-autopilot" prepare-autopilot-test.sh
346
347=== removed file 'share-app-autopilot/setup.sh'
348--- share-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
349+++ share-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
350@@ -1,14 +0,0 @@
351-#!/bin/sh
352-
353-set -e
354-
355-PKGS="autopilot-touch share-app-autopilot"
356-
357-MISSING=0
358-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
359-if [ $MISSING -eq 1 ] ; then
360- apt-get install -yq --force-yes $PKGS
361-else
362- echo "setup not needed"
363-fi
364-/usr/local/bin/unlock_screen.sh
365
366=== modified file 'share-app-autopilot/ts_control'
367--- share-app-autopilot/ts_control 2013-07-10 16:48:31 +0000
368+++ share-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
369@@ -1,1 +1,1 @@
370-ts_setup: sh ./setup.sh
371+ts_setup: PKGS=share-app-autopilot prepare-autopilot-test.sh
372
373=== removed file 'ubuntu-calculator-app-autopilot/setup.sh'
374--- ubuntu-calculator-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
375+++ ubuntu-calculator-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
376@@ -1,14 +0,0 @@
377-#!/bin/sh
378-
379-set -e
380-
381-PKGS="autopilot-touch ubuntu-calculator-app-autopilot"
382-
383-MISSING=0
384-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
385-if [ $MISSING -eq 1 ] ; then
386- apt-get install -yq --force-yes $PKGS
387-else
388- echo "setup not needed"
389-fi
390-/usr/local/bin/unlock_screen.sh
391
392=== modified file 'ubuntu-calculator-app-autopilot/ts_control'
393--- ubuntu-calculator-app-autopilot/ts_control 2013-08-01 22:15:03 +0000
394+++ ubuntu-calculator-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
395@@ -1,1 +1,1 @@
396-ts_setup: sh ./setup.sh
397+ts_setup: PKGS=ubuntu-calculator-app-autopilot prepare-autopilot-test.sh
398
399=== removed file 'ubuntu-clock-app-autopilot/setup.sh'
400--- ubuntu-clock-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
401+++ ubuntu-clock-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
402@@ -1,14 +0,0 @@
403-#!/bin/sh
404-
405-set -e
406-
407-PKGS="autopilot-touch ubuntu-clock-app-autopilot"
408-
409-MISSING=0
410-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
411-if [ $MISSING -eq 1 ] ; then
412- apt-get install -yq --force-yes $PKGS
413-else
414- echo "setup not needed"
415-fi
416-/usr/local/bin/unlock_screen.sh
417
418=== modified file 'ubuntu-clock-app-autopilot/ts_control'
419--- ubuntu-clock-app-autopilot/ts_control 2013-08-01 22:15:03 +0000
420+++ ubuntu-clock-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
421@@ -1,1 +1,1 @@
422-ts_setup: sh ./setup.sh
423+ts_setup: PKGS=ubuntu-clock-app-autopilot prepare-autopilot-test.sh
424
425=== removed directory 'ubuntu-clock-autopilot'
426=== removed file 'ubuntu-clock-autopilot/master.run'
427--- ubuntu-clock-autopilot/master.run 2013-08-16 19:34:15 +0000
428+++ ubuntu-clock-autopilot/master.run 1970-01-01 00:00:00 +0000
429@@ -1,15 +0,0 @@
430----
431-testsuites:
432- - name: settle-before
433- fetch_method: dev
434- fetch_location: ../systemsettle
435- include_tests:
436- - systemsettle-before
437- - name: ubuntu-clock-autopilot
438- fetch_method: dev
439- fetch_location: ./
440- - name: settle-after
441- fetch_method: dev
442- fetch_location: ../systemsettle
443- include_tests:
444- - systemsettle-after
445
446=== removed file 'ubuntu-clock-autopilot/setup.sh'
447--- ubuntu-clock-autopilot/setup.sh 2013-08-06 21:59:47 +0000
448+++ ubuntu-clock-autopilot/setup.sh 1970-01-01 00:00:00 +0000
449@@ -1,14 +0,0 @@
450-#!/bin/sh
451-
452-set -e
453-
454-PKGS="autopilot-touch ubuntu-clock-autopilot"
455-
456-MISSING=0
457-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
458-if [ $MISSING -eq 1 ] ; then
459- apt-get install -yq --force-yes $PKGS
460-else
461- echo "setup not needed"
462-fi
463-/usr/local/bin/unlock_screen.sh
464
465=== removed file 'ubuntu-clock-autopilot/ts_control'
466--- ubuntu-clock-autopilot/ts_control 2013-08-01 22:15:03 +0000
467+++ ubuntu-clock-autopilot/ts_control 1970-01-01 00:00:00 +0000
468@@ -1,1 +0,0 @@
469-ts_setup: sh ./setup.sh
470
471=== removed file 'ubuntu-clock-autopilot/tslist.auto'
472--- ubuntu-clock-autopilot/tslist.auto 2013-08-01 22:15:03 +0000
473+++ ubuntu-clock-autopilot/tslist.auto 1970-01-01 00:00:00 +0000
474@@ -1,4 +0,0 @@
475--
476- discovery_cmd: "autopilot list ubuntu_clock | grep ubuntu_clock| sed -e 's/^.*ubuntu_clock.tests.//'"
477- test_cmd: utah-autopilot run -v ubuntu_clock.tests.{}
478-
479
480=== removed file 'ubuntu-docviewer-app-autopilot/setup.sh'
481--- ubuntu-docviewer-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
482+++ ubuntu-docviewer-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
483@@ -1,14 +0,0 @@
484-#!/bin/sh
485-
486-set -e
487-
488-PKGS="autopilot-touch ubuntu-docviewer-app-autopilot"
489-
490-MISSING=0
491-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
492-if [ $MISSING -eq 1 ] ; then
493- apt-get install -yq --force-yes $PKGS
494-else
495- echo "setup not needed"
496-fi
497-/usr/local/bin/unlock_screen.sh
498
499=== modified file 'ubuntu-docviewer-app-autopilot/ts_control'
500--- ubuntu-docviewer-app-autopilot/ts_control 2013-08-01 22:15:03 +0000
501+++ ubuntu-docviewer-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
502@@ -1,1 +1,1 @@
503-ts_setup: sh ./setup.sh
504+ts_setup: PKGS=ubuntu-docviewer-app-autopilot prepare-autopilot-test.sh
505
506=== removed file 'ubuntu-filemanager-app-autopilot/setup.sh'
507--- ubuntu-filemanager-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
508+++ ubuntu-filemanager-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
509@@ -1,14 +0,0 @@
510-#!/bin/sh
511-
512-set -e
513-
514-PKGS="autopilot-touch ubuntu-filemanager-app-autopilot"
515-
516-MISSING=0
517-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
518-if [ $MISSING -eq 1 ] ; then
519- apt-get install -yq --force-yes $PKGS
520-else
521- echo "setup not needed"
522-fi
523-/usr/local/bin/unlock_screen.sh
524
525=== modified file 'ubuntu-filemanager-app-autopilot/ts_control'
526--- ubuntu-filemanager-app-autopilot/ts_control 2013-08-01 22:15:03 +0000
527+++ ubuntu-filemanager-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
528@@ -1,1 +1,1 @@
529-ts_setup: sh ./setup.sh
530+ts_setup: PKGS=ubuntu-filemanager-app-autopilot prepare-autopilot-test.sh
531
532=== removed file 'ubuntu-rssreader-app-autopilot/setup.sh'
533--- ubuntu-rssreader-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
534+++ ubuntu-rssreader-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
535@@ -1,14 +0,0 @@
536-#!/bin/sh
537-
538-set -e
539-
540-PKGS="autopilot-touch ubuntu-rssreader-app-autopilot"
541-
542-MISSING=0
543-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
544-if [ $MISSING -eq 1 ] ; then
545- apt-get install -yq --force-yes $PKGS
546-else
547- echo "setup not needed"
548-fi
549-/usr/local/bin/unlock_screen.sh
550
551=== modified file 'ubuntu-rssreader-app-autopilot/ts_control'
552--- ubuntu-rssreader-app-autopilot/ts_control 2013-08-01 22:15:03 +0000
553+++ ubuntu-rssreader-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
554@@ -1,1 +1,1 @@
555-ts_setup: sh ./setup.sh
556+ts_setup: PKGS=ubuntu-rssreader-app-autopilot prepare-autopilot-test.sh
557
558=== removed file 'ubuntu-terminal-app-autopilot/setup.sh'
559--- ubuntu-terminal-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
560+++ ubuntu-terminal-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
561@@ -1,14 +0,0 @@
562-#!/bin/sh
563-
564-set -e
565-
566-PKGS="autopilot-touch ubuntu-terminal-app-autopilot"
567-
568-MISSING=0
569-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
570-if [ $MISSING -eq 1 ] ; then
571- apt-get install -yq --force-yes $PKGS
572-else
573- echo "setup not needed"
574-fi
575-/usr/local/bin/unlock_screen.sh
576
577=== modified file 'ubuntu-terminal-app-autopilot/ts_control'
578--- ubuntu-terminal-app-autopilot/ts_control 2013-08-01 22:15:03 +0000
579+++ ubuntu-terminal-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
580@@ -1,1 +1,1 @@
581-ts_setup: sh ./setup.sh
582+ts_setup: PKGS=ubuntu-terminal-app-autopilot prepare-autopilot-test.sh
583
584=== removed file 'ubuntu-weather-app-autopilot/setup.sh'
585--- ubuntu-weather-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
586+++ ubuntu-weather-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
587@@ -1,14 +0,0 @@
588-#!/bin/sh
589-
590-set -e
591-
592-PKGS="autopilot-touch ubuntu-weather-app-autopilot"
593-
594-MISSING=0
595-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
596-if [ $MISSING -eq 1 ] ; then
597- apt-get install -yq --force-yes $PKGS
598-else
599- echo "setup not needed"
600-fi
601-/usr/local/bin/unlock_screen.sh
602
603=== modified file 'ubuntu-weather-app-autopilot/ts_control'
604--- ubuntu-weather-app-autopilot/ts_control 2013-08-01 22:15:03 +0000
605+++ ubuntu-weather-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
606@@ -1,1 +1,1 @@
607-ts_setup: sh ./setup.sh
608+ts_setup: PKGS=ubuntu-weather-app-autopilot prepare-autopilot-test.sh
609
610=== modified file 'unity8-autopilot/setup.sh'
611--- unity8-autopilot/setup.sh 2013-08-02 20:02:27 +0000
612+++ unity8-autopilot/setup.sh 2013-08-23 23:40:38 +0000
613@@ -2,13 +2,5 @@
614
615 set -e
616
617-PKGS="autopilot-touch unity8-autopilot"
618-
619-MISSING=0
620-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
621-if [ $MISSING -eq 1 ] ; then
622- apt-get install -yq --force-yes $PKGS
623-else
624- echo "setup not needed"
625-fi
626+NO_UNLOCK=1 PKGS="unity8-autopilot" prepare-autopilot-test.sh
627 sudo -i -u phablet bash -ic "stop unity8"
628
629=== added directory 'utils'
630=== renamed directory 'unlock_screen' => 'utils/target'
631=== added file 'utils/target/prepare-autopilot-test.sh'
632--- utils/target/prepare-autopilot-test.sh 1970-01-01 00:00:00 +0000
633+++ utils/target/prepare-autopilot-test.sh 2013-08-23 23:40:38 +0000
634@@ -0,0 +1,16 @@
635+#!/bin/sh
636+
637+set -e
638+
639+#installs dependencies and unlocks screen so an autopilot test case can run
640+
641+if [ -n "$PKGS" ] ; then
642+ MISSING=0
643+ dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
644+ if [ $MISSING -eq 1 ] ; then
645+ apt-get install -yq --force-yes $PKGS
646+ else
647+ echo "setup not needed"
648+ fi
649+fi
650+[ -z $NO_UNLOCK ] && unlock_screen.sh
651
652=== modified file 'utils/target/unlock_screen.sh'
653--- unlock_screen/unlock_screen.sh 2013-08-16 19:34:15 +0000
654+++ utils/target/unlock_screen.sh 2013-08-23 23:40:38 +0000
655@@ -1,11 +1,7 @@
656 #!/bin/sh
657
658-#temporary workaround till bug 1190792 is fixed
659-##Workaround removed for now, because we are trying to settle the system
660-##and detect things like this first
661-#pkill ueventd
662-#sleep 3
663+basedir=$(dirname $(readlink -f $0))
664
665 #temporary workaround for bug #1207386
666 chmod 666 /dev/uinput
667-sudo -i -u phablet bash -ic "PYTHONPATH=$(pwd) /usr/local/bin/unlock_screen.py"
668+sudo -i -u phablet bash -ic "PYTHONPATH=$(pwd) ${basedir}/unlock_screen.py"
669
670=== removed file 'webbrowser-app-autopilot/setup.sh'
671--- webbrowser-app-autopilot/setup.sh 2013-08-06 21:59:47 +0000
672+++ webbrowser-app-autopilot/setup.sh 1970-01-01 00:00:00 +0000
673@@ -1,14 +0,0 @@
674-#!/bin/sh
675-
676-set -e
677-
678-PKGS="autopilot-touch webbrowser-app-autopilot"
679-
680-MISSING=0
681-dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
682-if [ $MISSING -eq 1 ] ; then
683- apt-get install -yq --force-yes $PKGS
684-else
685- echo "setup not needed"
686-fi
687-/usr/local/bin/unlock_screen.sh
688
689=== modified file 'webbrowser-app-autopilot/ts_control'
690--- webbrowser-app-autopilot/ts_control 2013-07-11 20:08:44 +0000
691+++ webbrowser-app-autopilot/ts_control 2013-08-23 23:40:38 +0000
692@@ -1,1 +1,1 @@
693-ts_setup: sh ./setup.sh
694+ts_setup: PKGS=webbrowser-app-autopilot prepare-autopilot-test.sh

Subscribers

People subscribed via source and target branches