Merge lp:~mfisch/ubuntu-desktop-accomplishments/install-on-arm into lp:ubuntu-desktop-accomplishments

Proposed by Matt Fischer
Status: Merged
Merged at revision: 73
Proposed branch: lp:~mfisch/ubuntu-desktop-accomplishments/install-on-arm
Merge into: lp:ubuntu-desktop-accomplishments
Diff against target: 558 lines (+286/-142)
17 files modified
Changelog (+3/-0)
accomplishments/ubuntu-desktop/en/general/installed-on-arm.accomplishment (+17/-0)
accomplishments/ubuntu-desktop/en/general/upgraded-ubuntu.accomplishment (+1/-1)
scripts/ubuntu-desktop/gaming/mahjongg-bridges.py (+17/-8)
scripts/ubuntu-desktop/gaming/mahjongg-cloud.py (+16/-8)
scripts/ubuntu-desktop/gaming/mahjongg-confounding.py (+16/-8)
scripts/ubuntu-desktop/gaming/mahjongg-difficult.py (+16/-8)
scripts/ubuntu-desktop/gaming/mahjongg-dragon.py (+16/-8)
scripts/ubuntu-desktop/gaming/mahjongg-easy.py (+16/-8)
scripts/ubuntu-desktop/gaming/mahjongg-master.py (+88/-63)
scripts/ubuntu-desktop/gaming/mahjongg-pyramid.py (+16/-8)
scripts/ubuntu-desktop/gaming/mahjongg-tictactoe.py (+16/-8)
scripts/ubuntu-desktop/gaming/mahjongg-ziggurat.py (+16/-8)
scripts/ubuntu-desktop/general/installed-on-arm.py (+19/-0)
scripts/ubuntu-desktop/general/upgraded-ubuntu.py (+3/-6)
tests/ubuntu-desktop/general/install-on-arm (+5/-0)
tests/ubuntu-desktop/general/upgraded-ubuntu (+5/-0)
To merge this branch: bzr merge lp:~mfisch/ubuntu-desktop-accomplishments/install-on-arm
Reviewer Review Type Date Requested Status
Ubuntu Desktop Accomplishments Reviewers Pending
Review via email: mp+134612@code.launchpad.net

Description of the change

Adds an accomplishment for installing on ARM.
Fixes a bunch of problems with the Mahjongg accomplishments
Adds some tests

To post a comment you must log in.
Revision history for this message
Matt Fischer (mfisch) wrote :

Also if the id field is no longer user per my email, I'll add that to this change set.

Revision history for this message
Rafał Cieślak (rafalcieslak256) wrote :

Hey Matt, thanks for these fixes and new accom.

I am mostly fine with all these changes, here are few notes:
 * I doubt we need tests for local accomplishments. They only make sense for global ones, as they can be verified for given extra-information; the tests you have added to this branch are not going to be any helpful, using <email address hidden> does not make me get installed-on-arm trophy ;)
 * The last step in installed-on-arm descrioption ("join #ubuntu-arm and participate in community") is more like a tip then a step to me, it's not required to receive this trophy, so putting that in tips field might make a bit more sense.

Apart from that, this MP is great.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Changelog'
2--- Changelog 2012-10-22 23:03:17 +0000
3+++ Changelog 2012-11-16 05:10:23 +0000
4@@ -20,5 +20,8 @@
5
6 [Matt Fischer]
7 * Added a new accomplishment: Upgraded Ubuntu
8+ * Added a new accomplishment: Installed on ARM
9+ * Fixed a bug in the Mahjongg scripts, make them check for mahjongg
10+ files before trying to read them: LP: #1079508
11
12 -------------------------------------------------------------------------
13
14=== added file 'accomplishments/ubuntu-desktop/en/general/installed-on-arm.accomplishment'
15--- accomplishments/ubuntu-desktop/en/general/installed-on-arm.accomplishment 1970-01-01 00:00:00 +0000
16+++ accomplishments/ubuntu-desktop/en/general/installed-on-arm.accomplishment 2012-11-16 05:10:23 +0000
17@@ -0,0 +1,17 @@
18+[accomplishment]
19+title=Installed Ubuntu on ARM
20+description=You have installed Ubuntu on a system with an ARM processor
21+collection=ubuntu-desktop
22+category=General
23+needs-signing=false
24+icon=arm.png
25+summary = Ubuntu supports several different CPU architectures. ARM processors are found inside many mobile devices where low-power usage is a key feature, but ARM processors are also beginning to be used in servers as well. Ubuntu is now supported on many of the implentations of ARM. When you install Ubuntu on your ARM based device, and then file bugs or fix bugs, you can help improve Ubuntu on ARM.
26+steps: Review the <a href="https://wiki.ubuntu.com/ARM">Ubuntu ARM wikipage</a> to see what platforms and releases are supported.
27+ Download an image.
28+ Install Ubuntu on a system that has an ARM processor in it.
29+ Join #ubuntu-arm to participate in the Ubuntu on ARM community.
30+pitfalls: Ubuntu is not supported on every ARM platform or device, check the Ububtu ARM wikipage or ask on #ubuntu-arm if you are not sure what is supported.
31+links: https://wiki.ubuntu.com/ARM
32+ http://www.ubuntu.com/download/desktop/alternative-downloads
33+help = #ubuntu-arm on Freenode
34+author = Matt Fischer <matthew.fischer@ubuntu.com>
35
36=== modified file 'accomplishments/ubuntu-desktop/en/general/upgraded-ubuntu.accomplishment'
37--- accomplishments/ubuntu-desktop/en/general/upgraded-ubuntu.accomplishment 2012-10-22 23:04:40 +0000
38+++ accomplishments/ubuntu-desktop/en/general/upgraded-ubuntu.accomplishment 2012-11-16 05:10:23 +0000
39@@ -1,7 +1,7 @@
40 [accomplishment]
41 title=Upgraded Ubuntu
42 description=You have upgraded an installed copy of Ubuntu
43-collection=ubuntu-community
44+collection=ubuntu-desktop
45 category=General
46 needs-signing=false
47 icon=default.png
48
49=== added file 'accomplishments/ubuntu-desktop/trophyimages/arm.png'
50Binary files accomplishments/ubuntu-desktop/trophyimages/arm.png 1970-01-01 00:00:00 +0000 and accomplishments/ubuntu-desktop/trophyimages/arm.png 2012-11-16 05:10:23 +0000 differ
51=== modified file 'scripts/ubuntu-desktop/gaming/mahjongg-bridges.py'
52--- scripts/ubuntu-desktop/gaming/mahjongg-bridges.py 2012-06-05 19:43:54 +0000
53+++ scripts/ubuntu-desktop/gaming/mahjongg-bridges.py 2012-11-16 05:10:23 +0000
54@@ -1,10 +1,19 @@
55 #!/usr/bin/python
56 import sys, os
57-filePath = '/var/games/mahjongg.bridges.scores'
58-fileSize = os.path.getsize(filePath)
59-if fileSize > 0:
60- #user has completed mahjongg bridges level
61- sys.exit(0)
62-else:
63- #user has not completed mahjongg bridges level
64- sys.exit(1)
65+
66+try:
67+ filePath = '/var/games/mahjongg.bridges.scores'
68+ if not os.path.exists(filePath):
69+ sys.exit(1)
70+ fileSize = os.path.getsize(filePath)
71+ if fileSize > 0:
72+ #user has completed mahjongg bridges level
73+ sys.exit(0)
74+ else:
75+ #user has not completed mahjongg bridges level
76+ sys.exit(1)
77+except SystemExit, e:
78+ sys.exit(e.code)
79+except:
80+ traceback.print_exc()
81+ sys.exit(2)
82
83=== modified file 'scripts/ubuntu-desktop/gaming/mahjongg-cloud.py'
84--- scripts/ubuntu-desktop/gaming/mahjongg-cloud.py 2012-06-05 19:43:54 +0000
85+++ scripts/ubuntu-desktop/gaming/mahjongg-cloud.py 2012-11-16 05:10:23 +0000
86@@ -1,10 +1,18 @@
87 #!/usr/bin/python
88 import sys, os
89-filePath = '/var/games/mahjongg.cloud.scores'
90-fileSize = os.path.getsize(filePath)
91-if fileSize > 0:
92- #user has completed mahjongg cloud level
93- sys.exit(0)
94-else:
95- #user has not completed mahjongg cloud level
96- sys.exit(1)
97+try:
98+ filePath = '/var/games/mahjongg.cloud.scores'
99+ if not os.path.exists(filePath):
100+ sys.exit(1)
101+ fileSize = os.path.getsize(filePath)
102+ if fileSize > 0:
103+ #user has completed mahjongg cloud level
104+ sys.exit(0)
105+ else:
106+ #user has not completed mahjongg cloud level
107+ sys.exit(1)
108+except SystemExit, e:
109+ sys.exit(e.code)
110+except:
111+ traceback.print_exc()
112+ sys.exit(2)
113
114=== modified file 'scripts/ubuntu-desktop/gaming/mahjongg-confounding.py'
115--- scripts/ubuntu-desktop/gaming/mahjongg-confounding.py 2012-06-05 19:43:54 +0000
116+++ scripts/ubuntu-desktop/gaming/mahjongg-confounding.py 2012-11-16 05:10:23 +0000
117@@ -1,10 +1,18 @@
118 #!/usr/bin/python
119 import sys, os
120-filePath = '/var/games/mahjongg.confounding.scores'
121-fileSize = os.path.getsize(filePath)
122-if fileSize > 0:
123- #user has completed mahjongg confounding cross level
124- sys.exit(0)
125-else:
126- #user has not completed mahjongg confounding cross level
127- sys.exit(1)
128+try:
129+ filePath = '/var/games/mahjongg.confounding.scores'
130+ if not os.path.exists(filePath):
131+ sys.exit(1)
132+ fileSize = os.path.getsize(filePath)
133+ if fileSize > 0:
134+ #user has completed mahjongg confounding cross level
135+ sys.exit(0)
136+ else:
137+ #user has not completed mahjongg confounding cross level
138+ sys.exit(1)
139+except SystemExit, e:
140+ sys.exit(e.code)
141+except:
142+ traceback.print_exc()
143+ sys.exit(2)
144
145=== modified file 'scripts/ubuntu-desktop/gaming/mahjongg-difficult.py'
146--- scripts/ubuntu-desktop/gaming/mahjongg-difficult.py 2012-06-05 19:43:54 +0000
147+++ scripts/ubuntu-desktop/gaming/mahjongg-difficult.py 2012-11-16 05:10:23 +0000
148@@ -1,10 +1,18 @@
149 #!/usr/bin/python
150 import sys, os
151-filePath = '/var/games/mahjongg.difficult.scores'
152-fileSize = os.path.getsize(filePath)
153-if fileSize > 0:
154- #user has completed mahjongg on difficult
155- sys.exit(0)
156-else:
157- #user has not completed mahjongg on difficult
158- sys.exit(1)
159+try:
160+ filePath = '/var/games/mahjongg.difficult.scores'
161+ if not os.path.exists(filePath):
162+ sys.exit(1)
163+ fileSize = os.path.getsize(filePath)
164+ if fileSize > 0:
165+ #user has completed mahjongg on difficult
166+ sys.exit(0)
167+ else:
168+ #user has not completed mahjongg on difficult
169+ sys.exit(1)
170+except SystemExit, e:
171+ sys.exit(e.code)
172+except:
173+ traceback.print_exc()
174+ sys.exit(2)
175
176=== modified file 'scripts/ubuntu-desktop/gaming/mahjongg-dragon.py'
177--- scripts/ubuntu-desktop/gaming/mahjongg-dragon.py 2012-06-05 19:43:54 +0000
178+++ scripts/ubuntu-desktop/gaming/mahjongg-dragon.py 2012-11-16 05:10:23 +0000
179@@ -1,10 +1,18 @@
180 #!/usr/bin/python
181 import sys, os
182-filePath = '/var/games/mahjongg.dragon.scores'
183-fileSize = os.path.getsize(filePath)
184-if fileSize > 0:
185- #user has completed mahjongg dragon level
186- sys.exit(0)
187-else:
188- #user has not completed mahjongg dragon level
189- sys.exit(1)
190+try:
191+ filePath = '/var/games/mahjongg.dragon.scores'
192+ if not os.path.exists(filePath):
193+ sys.exit(1)
194+ fileSize = os.path.getsize(filePath)
195+ if fileSize > 0:
196+ #user has completed mahjongg dragon level
197+ sys.exit(0)
198+ else:
199+ #user has not completed mahjongg dragon level
200+ sys.exit(1)
201+except SystemExit, e:
202+ sys.exit(e.code)
203+except:
204+ traceback.print_exc()
205+ sys.exit(2)
206
207=== modified file 'scripts/ubuntu-desktop/gaming/mahjongg-easy.py'
208--- scripts/ubuntu-desktop/gaming/mahjongg-easy.py 2012-06-05 19:43:54 +0000
209+++ scripts/ubuntu-desktop/gaming/mahjongg-easy.py 2012-11-16 05:10:23 +0000
210@@ -1,10 +1,18 @@
211 #!/usr/bin/python
212 import sys, os
213-filePath = '/var/games/mahjongg.easy.scores'
214-fileSize = os.path.getsize(filePath)
215-if fileSize > 0:
216- #user has completed mahjongg on easy
217- sys.exit(0)
218-else:
219- #user has not completed mahjongg on easy
220- sys.exit(1)
221+try:
222+ filePath = '/var/games/mahjongg.easy.scores'
223+ if not os.path.exists(filePath):
224+ sys.exit(1)
225+ fileSize = os.path.getsize(filePath)
226+ if fileSize > 0:
227+ #user has completed mahjongg on easy
228+ sys.exit(0)
229+ else:
230+ #user has not completed mahjongg on easy
231+ sys.exit(1)
232+except SystemExit, e:
233+ sys.exit(e.code)
234+except:
235+ traceback.print_exc()
236+ sys.exit(2)
237
238=== modified file 'scripts/ubuntu-desktop/gaming/mahjongg-master.py'
239--- scripts/ubuntu-desktop/gaming/mahjongg-master.py 2012-06-05 19:43:54 +0000
240+++ scripts/ubuntu-desktop/gaming/mahjongg-master.py 2012-11-16 05:10:23 +0000
241@@ -1,65 +1,90 @@
242 #!/usr/bin/python
243 import sys, os
244-runningTotal = 0
245-
246-#bridges
247-filePath = '/var/games/mahjongg.bridges.scores'
248-fileSize = os.path.getsize(filePath)
249-if fileSize > 0:
250- runningTotal = runningTotal +1
251-
252-#cloud
253-filePath = '/var/games/mahjongg.cloud.scores'
254-fileSize = os.path.getsize(filePath)
255-if fileSize > 0:
256- runningTotal = runningTotal +1
257-
258-#confounding
259-filePath = '/var/games/mahjongg.confounding.scores'
260-fileSize = os.path.getsize(filePath)
261-if fileSize > 0:
262- runningTotal = runningTotal +1
263-
264-#difficult
265-filePath = '/var/games/mahjongg.difficult.scores'
266-fileSize = os.path.getsize(filePath)
267-if fileSize > 0:
268- runningTotal = runningTotal +1
269-
270-#dragon
271-filePath = '/var/games/mahjongg.dragon.scores'
272-fileSize = os.path.getsize(filePath)
273-if fileSize > 0:
274- runningTotal = runningTotal +1
275-
276-#easy
277-filePath = '/var/games/mahjongg.easy.scores'
278-fileSize = os.path.getsize(filePath)
279-if fileSize > 0:
280- runningTotal = runningTotal +1
281-
282-#pyramid
283-filePath = '/var/games/mahjongg.pyramid.scores'
284-fileSize = os.path.getsize(filePath)
285-if fileSize > 0:
286- runningTotal = runningTotal +1
287-
288-#tic-tac-toe
289-filePath = '/var/games/mahjongg.tictactoe.scores'
290-fileSize = os.path.getsize(filePath)
291-if fileSize > 0:
292- runningTotal = runningTotal +1
293-
294-#ziggurat
295-filePath = '/var/games/mahjongg.ziggurat.scores'
296-fileSize = os.path.getsize(filePath)
297-if fileSize > 0:
298- runningTotal = runningTotal +1
299-
300-# 9 levels exist, therefore if running total is less than 9 then all levels have not been completed
301-if runningTotal < 9 :
302- #user has not completed all mahjongg levels
303- sys.exit(1)
304-else:
305- #user has completed all mahjongg levels
306- sys.exit(0)
307+try:
308+ runningTotal = 0
309+
310+ #bridges
311+ filePath = '/var/games/mahjongg.bridges.scores'
312+ if not os.path.exists(filePath):
313+ sys.exit(1)
314+ fileSize = os.path.getsize(filePath)
315+ if fileSize > 0:
316+ runningTotal = runningTotal +1
317+
318+ #cloud
319+ filePath = '/var/games/mahjongg.cloud.scores'
320+ if not os.path.exists(filePath):
321+ sys.exit(1)
322+ fileSize = os.path.getsize(filePath)
323+ if fileSize > 0:
324+ runningTotal = runningTotal +1
325+
326+ #confounding
327+ filePath = '/var/games/mahjongg.confounding.scores'
328+ if not os.path.exists(filePath):
329+ sys.exit(1)
330+ fileSize = os.path.getsize(filePath)
331+ if fileSize > 0:
332+ runningTotal = runningTotal +1
333+
334+ #difficult
335+ filePath = '/var/games/mahjongg.difficult.scores'
336+ if not os.path.exists(filePath):
337+ sys.exit(1)
338+ fileSize = os.path.getsize(filePath)
339+ if fileSize > 0:
340+ runningTotal = runningTotal +1
341+
342+ #dragon
343+ filePath = '/var/games/mahjongg.dragon.scores'
344+ if not os.path.exists(filePath):
345+ sys.exit(1)
346+ fileSize = os.path.getsize(filePath)
347+ if fileSize > 0:
348+ runningTotal = runningTotal +1
349+
350+ #easy
351+ filePath = '/var/games/mahjongg.easy.scores'
352+ if not os.path.exists(filePath):
353+ sys.exit(1)
354+ fileSize = os.path.getsize(filePath)
355+ if fileSize > 0:
356+ runningTotal = runningTotal +1
357+
358+ #pyramid
359+ filePath = '/var/games/mahjongg.pyramid.scores'
360+ if not os.path.exists(filePath):
361+ sys.exit(1)
362+ fileSize = os.path.getsize(filePath)
363+ if fileSize > 0:
364+ runningTotal = runningTotal +1
365+
366+ #tic-tac-toe
367+ filePath = '/var/games/mahjongg.tictactoe.scores'
368+ if not os.path.exists(filePath):
369+ sys.exit(1)
370+ fileSize = os.path.getsize(filePath)
371+ if fileSize > 0:
372+ runningTotal = runningTotal +1
373+
374+ #ziggurat
375+ filePath = '/var/games/mahjongg.ziggurat.scores'
376+ if not os.path.exists(filePath):
377+ sys.exit(1)
378+ fileSize = os.path.getsize(filePath)
379+ if fileSize > 0:
380+ runningTotal = runningTotal +1
381+
382+ # 9 levels exist, therefore if running total is less than 9 then all
383+ # levels have not been completed
384+ if runningTotal < 9 :
385+ #user has not completed all mahjongg levels
386+ sys.exit(1)
387+ else:
388+ #user has completed all mahjongg levels
389+ sys.exit(0)
390+except SystemExit, e:
391+ sys.exit(e.code)
392+except:
393+ traceback.print_exc()
394+ sys.exit(2)
395
396=== modified file 'scripts/ubuntu-desktop/gaming/mahjongg-pyramid.py'
397--- scripts/ubuntu-desktop/gaming/mahjongg-pyramid.py 2012-06-05 19:43:54 +0000
398+++ scripts/ubuntu-desktop/gaming/mahjongg-pyramid.py 2012-11-16 05:10:23 +0000
399@@ -1,10 +1,18 @@
400 #!/usr/bin/python
401 import sys, os
402-filePath = '/var/games/mahjongg.pyramid.scores'
403-fileSize = os.path.getsize(filePath)
404-if fileSize > 0:
405- #user has completed mahjongg pyramid level
406- sys.exit(0)
407-else:
408- #user has not completed mahjongg pyramid level
409- sys.exit(1)
410+try:
411+ filePath = '/var/games/mahjongg.pyramid.scores'
412+ if not os.path.exists(filePath):
413+ sys.exit(1)
414+ fileSize = os.path.getsize(filePath)
415+ if fileSize > 0:
416+ #user has completed mahjongg pyramid level
417+ sys.exit(0)
418+ else:
419+ #user has not completed mahjongg pyramid level
420+ sys.exit(1)
421+except SystemExit, e:
422+ sys.exit(e.code)
423+except:
424+ traceback.print_exc()
425+ sys.exit(2)
426
427=== modified file 'scripts/ubuntu-desktop/gaming/mahjongg-tictactoe.py'
428--- scripts/ubuntu-desktop/gaming/mahjongg-tictactoe.py 2012-06-05 19:43:54 +0000
429+++ scripts/ubuntu-desktop/gaming/mahjongg-tictactoe.py 2012-11-16 05:10:23 +0000
430@@ -1,10 +1,18 @@
431 #!/usr/bin/python
432 import sys, os
433-filePath = '/var/games/mahjongg.tictactoe.scores'
434-fileSize = os.path.getsize(filePath)
435-if fileSize > 0:
436- #user has completed mahjongg tic-tac-toe level
437- sys.exit(0)
438-else:
439- #user has not completed mahjongg tic-tac-toe level
440- sys.exit(1)
441+try:
442+ filePath = '/var/games/mahjongg.tictactoe.scores'
443+ if not os.path.exists(filePath):
444+ sys.exit(1)
445+ fileSize = os.path.getsize(filePath)
446+ if fileSize > 0:
447+ #user has completed mahjongg tic-tac-toe level
448+ sys.exit(0)
449+ else:
450+ #user has not completed mahjongg tic-tac-toe level
451+ sys.exit(1)
452+except SystemExit, e:
453+ sys.exit(e.code)
454+except:
455+ traceback.print_exc()
456+ sys.exit(2)
457
458=== modified file 'scripts/ubuntu-desktop/gaming/mahjongg-ziggurat.py'
459--- scripts/ubuntu-desktop/gaming/mahjongg-ziggurat.py 2012-06-05 19:43:54 +0000
460+++ scripts/ubuntu-desktop/gaming/mahjongg-ziggurat.py 2012-11-16 05:10:23 +0000
461@@ -1,10 +1,18 @@
462 #!/usr/bin/python
463 import sys, os
464-filePath = '/var/games/mahjongg.ziggurat.scores'
465-fileSize = os.path.getsize(filePath)
466-if fileSize > 0:
467- #user has completed mahjongg ziggurat level
468- sys.exit(0)
469-else:
470- #user has not completed mahjongg ziggurat level
471- sys.exit(1)
472+try:
473+ filePath = '/var/games/mahjongg.ziggurat.scores'
474+ if not os.path.exists(filePath):
475+ sys.exit(1)
476+ fileSize = os.path.getsize(filePath)
477+ if fileSize > 0:
478+ #user has completed mahjongg ziggurat level
479+ sys.exit(0)
480+ else:
481+ #user has not completed mahjongg ziggurat level
482+ sys.exit(1)
483+except SystemExit, e:
484+ sys.exit(e.code)
485+except:
486+ traceback.print_exc()
487+ sys.exit(2)
488
489=== added file 'scripts/ubuntu-desktop/general/installed-on-arm.py'
490--- scripts/ubuntu-desktop/general/installed-on-arm.py 1970-01-01 00:00:00 +0000
491+++ scripts/ubuntu-desktop/general/installed-on-arm.py 2012-11-16 05:10:23 +0000
492@@ -0,0 +1,19 @@
493+#!/usr/bin/python
494+import traceback, sys
495+import subprocess
496+
497+try:
498+ # get architecture
499+ out = subprocess.check_output(['uname', '-i'],
500+ universal_newlines=True)
501+
502+ if out.startswith("arm"):
503+ sys.exit(0)
504+ else:
505+ sys.exit(1)
506+
507+except SystemExit, e:
508+ sys.exit(e.code)
509+except:
510+ traceback.print_exc()
511+ sys.exit(2)
512
513=== modified file 'scripts/ubuntu-desktop/general/upgraded-ubuntu.py'
514--- scripts/ubuntu-desktop/general/upgraded-ubuntu.py 2012-10-22 23:03:17 +0000
515+++ scripts/ubuntu-desktop/general/upgraded-ubuntu.py 2012-11-16 05:10:23 +0000
516@@ -1,17 +1,14 @@
517 #!/usr/bin/python
518 import traceback, sys
519-
520-from accomplishments.daemon import dbusapi
521-# Add scripts/lib/ to the PYTHONPATH
522 import os
523-sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'lib')))
524 import subprocess
525
526 try:
527- api = dbusapi.Accomplishments()
528-
529 # get install media release version
530 f = open('/var/log/installer/media-info','r')
531+ if not f:
532+ sys.exit(1)
533+
534 media_info = f.read()
535 release_info = media_info.split()
536 install_release = release_info[1]
537
538=== added directory 'tests/ubuntu-desktop'
539=== added directory 'tests/ubuntu-desktop/general'
540=== added file 'tests/ubuntu-desktop/general/install-on-arm'
541--- tests/ubuntu-desktop/general/install-on-arm 1970-01-01 00:00:00 +0000
542+++ tests/ubuntu-desktop/general/install-on-arm 2012-11-16 05:10:23 +0000
543@@ -0,0 +1,5 @@
544+[success]
545+launchpad-email = matt@mattfischer.com
546+
547+[failure]
548+launchpad-email = accomplishmentsvalidation@gmail.com
549
550=== added file 'tests/ubuntu-desktop/general/upgraded-ubuntu'
551--- tests/ubuntu-desktop/general/upgraded-ubuntu 1970-01-01 00:00:00 +0000
552+++ tests/ubuntu-desktop/general/upgraded-ubuntu 2012-11-16 05:10:23 +0000
553@@ -0,0 +1,5 @@
554+[success]
555+launchpad-email = matt@mattfischer.com
556+
557+[failure]
558+launchpad-email = accomplishmentsvalidation@gmail.com

Subscribers

People subscribed via source and target branches