tests of/using BuilddSlaveTestSetup mangle global state for other tests

Bug #780794 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Unassigned

Bug Description

lib/canonical/buildd/tests/harness.py line 117:
        os.environ['HOME'] = self.root

alters global state. This should have a matching
self.addCleanup
to restore the original environment variable. Or better yet the HOME should only be exported to the child process, not -ever- altered in the main test process.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.