Comment 0 for bug 1381187

Revision history for this message
Leo Arias (elopio) wrote :

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.

But #1376423 was reported to get an easy way to get a clean environment to run the tests in the dev machine, phone or emulator.