Autopilot tests make back ups for existing data in the user directory

Bug #1381187 reported by Leo Arias on 2014-10-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gallery-app (Ubuntu)
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

Leo Arias (elopio) on 2014-10-14
description: updated
Leo Arias (elopio) on 2014-10-14
Changed in gallery-app:
status: New → In Progress
assignee: nobody → Leo Arias (elopio)
affects: gallery-app → gallery-app (Ubuntu)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints