Merge lp:~canonical-platform-qa/ubuntu-system-tests/mtp-backup-local-media into lp:ubuntu-system-tests
Proposed by
Richard Huddie
Status: | Merged |
---|---|
Approved by: | Sergio Cazzolato |
Approved revision: | 161 |
Merged at revision: | 161 |
Proposed branch: | lp:~canonical-platform-qa/ubuntu-system-tests/mtp-backup-local-media |
Merge into: | lp:ubuntu-system-tests |
Diff against target: |
233 lines (+103/-30) 5 files modified
ubuntu_system_tests/helpers/backup_restore_fixture.py (+3/-1) ubuntu_system_tests/helpers/file_system.py (+19/-0) ubuntu_system_tests/helpers/media.py (+67/-0) ubuntu_system_tests/tests/test_mtp.py (+8/-1) ubuntu_system_tests/tests/test_scopes.py (+6/-28) |
To merge this branch: | bzr merge lp:~canonical-platform-qa/ubuntu-system-tests/mtp-backup-local-media |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sergio Cazzolato | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Review via email: mp+265945@code.launchpad.net |
Commit message
Add BackupRestoreLo
Description of the change
Update MTP test_copy_music to backup and restore any local media before running the test.
Create a new fixture for backing up and restoring all local media files on the device. Update the backup and restore helper so that when it moves a folder, it leaves the top-level folder in place. This is required for MTP where it can cause problems if the Music, Videos or Pictures folders get deleted and re-added.
This mp also creates a helper to restart the media scanner after moving the local media files to ensure the scopes are updated.
To post a comment you must log in.
PASSED: Continuous integration, rev:158 s-jenkins. ubuntu- ci:8080/ job/ubuntu- sanity- tests-ci/ 544/ s-jenkins. ubuntu- ci:8080/ job/ubuntu- sanity- tests-wily- amd64-ci/ 272 s-jenkins. ubuntu- ci:8080/ job/ubuntu- sanity- tests-wily- armhf-ci/ 273 s-jenkins. ubuntu- ci:8080/ job/ubuntu- sanity- tests-wily- i386-ci/ 272
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- sanity- tests-ci/ 544/rebuild
http://