Merge lp:~sergiusens/music-app/test_asset_location into lp:music-app/trusty

Proposed by Sergio Schvezov
Status: Merged
Approved by: Victor Thompson
Approved revision: 204
Merged at revision: 209
Proposed branch: lp:~sergiusens/music-app/test_asset_location
Merge into: lp:music-app/trusty
Diff against target: 23 lines (+3/-4)
1 file modified
tests/autopilot/music_app/tests/__init__.py (+3/-4)
To merge this branch: bzr merge lp:~sergiusens/music-app/test_asset_location
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Victor Thompson Approve
Andy Doan (community) Approve
Review via email: mp+191228@code.launchpad.net

Commit message

Using package location to determine asset location

To post a comment you must log in.
Revision history for this message
Andy Doan (doanac) :
review: Approve
Revision history for this message
Victor Thompson (vthompson) wrote :

Appears to work straight from the branch.

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/autopilot/music_app/tests/__init__.py'
--- tests/autopilot/music_app/tests/__init__.py 2013-10-14 14:24:55 +0000
+++ tests/autopilot/music_app/tests/__init__.py 2013-10-15 15:40:57 +0000
@@ -15,6 +15,7 @@
15import shutil15import shutil
16#import subprocess16#import subprocess
17import logging17import logging
18import music_app
1819
19from autopilot.input import Mouse, Touch, Pointer20from autopilot.input import Mouse, Touch, Pointer
20from autopilot.platform import model21from autopilot.platform import model
@@ -139,10 +140,8 @@
139 logger.debug("Mediascanner path set to %s" % mediascannerpath)140 logger.debug("Mediascanner path set to %s" % mediascannerpath)
140141
141 #set content path142 #set content path
142 if self.test_type == 'local' or self.test_type == 'click':143 content_dir = os.path.join(os.path.dirname(music_app.__file__),
143 content_dir = os.path.join(self.working_dir, 'music_app/content/')144 'content')
144 else:
145 content_dir = '/usr/lib/python2.7/dist-packages/music_app/content/'
146145
147 logger.debug("Content dir set to %s" % content_dir)146 logger.debug("Content dir set to %s" % content_dir)
148147

Subscribers

People subscribed via source and target branches

to status/vote changes: