Autopilot tests make back ups for existing data in the user directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gallery-app (Ubuntu) |
In Progress
|
Undecided
|
Leo Arias |
Bug Description
Some autopilot suites are run on the current user session. So if they are run on the developer machine, they can be affected by and can affect the existing data in the user home folder. For this reason, this suites make back ups of existing data.
We have found that this is a bad solution for the problem. It makes the set up code too complex and it needs to be updated every time somebody makes changes on the way the application stores and handles its data files. We end up with an unclear patched set up that not always works and makes the failures harder to diagnose.
Form now on, we have decided that the tests must assume that they are run in a clean environment. If there are data files in the home directory that will affect the run, it will fail.
Bug #1376423 was reported to get an easy way to get a clean environment to run the tests in the dev machine, phone or emulator.
Related branches
- PS Jenkins bot: Pending (continuous-integration) requested
- Ubuntu Phablet Team: Pending requested
-
Diff: 108 lines (+21/-28)1 file modifiedtests/autopilot/gallery_app/tests/__init__.py (+21/-28)
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Ubuntu Phablet Team: Pending requested
-
Diff: 367 lines (+171/-102)3 files modifieddebian/control (+4/-2)
tests/autopilot/gallery_app/fixture_setup.py (+136/-0)
tests/autopilot/gallery_app/tests/__init__.py (+31/-100)
description: | updated |
Changed in gallery-app: | |
status: | New → In Progress |
assignee: | nobody → Leo Arias (elopio) |
affects: | gallery-app → gallery-app (Ubuntu) |