Autopilot tests use temporary directories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gallery-app |
Fix Released
|
Undecided
|
Leo Arias |
Bug Description
Some autopilot tests are placing files into a temporary directory to be used by the apps.
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 consumes 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. Tests must just place the files in a $HOME subdirectory.
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. If a clean environment requires a temporary directory, the fix for that bug will set the right value to HOME.
Related branches
- PS Jenkins bot: Pending (continuous-integration) requested
- Ubuntu Phablet Team: Pending requested
-
Diff: 102 lines (+27/-25)1 file modifiedtests/autopilot/gallery_app/tests/__init__.py (+27/-25)
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Ubuntu Phablet Team: Pending requested
-
Diff: 102 lines (+27/-25)1 file modifiedtests/autopilot/gallery_app/tests/__init__.py (+27/-25)
Changed in gallery-app: | |
status: | New → In Progress |
assignee: | nobody → Leo Arias (elopio) |
the code change there as been merge, closing the bug