MTP test test_copy_music should remove existing music before running
Bug #1477998 reported by
Richard Huddie
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-system-tests |
Fix Committed
|
High
|
Richard Huddie |
Bug Description
When running mtp test_copy_music with existing music installed on the device, it can fail to find the copied music on the music scope because it is hidden by the existing music.
These tests should automatically move any existing media files from the media folders (on internal memory and sd card) before running the tests, and then automatically restore it again after the test is finished.
The music scope tests do exactly this, and there is a fixture that can be used for it.
Related branches
lp:~canonical-platform-qa/ubuntu-system-tests/mtp-backup-local-media
- Sergio Cazzolato: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 233 lines (+103/-30)5 files modifiedubuntu_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)
Changed in ubuntu-system-tests: | |
importance: | Undecided → High |
assignee: | nobody → Richard Huddie (rhuddie) |
To post a comment you must log in.
Fix committed into lp:ubuntu-system-tests at revision 161, scheduled for release in ubuntu- system- tests, milestone Unknown