Merge lp://staging/~om26er/camera-app/test-fix into lp://staging/camera-app

Proposed by Omer Akram
Status: Merged
Approved by: Florian Boucault
Approved revision: 551
Merged at revision: 556
Proposed branch: lp://staging/~om26er/camera-app/test-fix
Merge into: lp://staging/camera-app
Diff against target: 28 lines (+10/-9)
1 file modified
tests/autopilot/camera_app/tests/__init__.py (+10/-9)
To merge this branch: bzr merge lp://staging/~om26er/camera-app/test-fix
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Leo Arias (community) Approve
Ubuntu Phablet Team Pending
Review via email: mp+256382@code.staging.launchpad.net

Commit message

Autopilot: Ensure the media directories exist before trying to delete data from them.

Description of the change

Autopilot: Ensure the media directories exist before trying to delete data from them.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Leo Arias (elopio) wrote :

Thanks Omer.
You can extract a method for the common bits of both cases.

review: Needs Fixing
550. By Omer Akram

reuse code

Revision history for this message
Omer Akram (om26er) wrote :

> Thanks Omer.
> You can extract a method for the common bits of both cases.

Done. I am not able to decide though on what should be the name of the method which checks if a directory exists or not.

I named is directory_exists() would is_directory_there() better or does_directory_exist() ? Or anything else.

551. By Omer Akram

no need to write a method to check if a directory exists, rather make direct call to os.path.exists

Revision history for this message
Leo Arias (elopio) wrote :

thank you.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches