~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-07 21:31:58 UTC
  • mto: This revision was merged to the branch mainline in revision 1991.
  • Revision ID: john@arbash-meinel.com-20060907213158-71df9bbd07474d1d
Update the test suite to put HOME in a different directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
1052
1052
                i = i + 1
1053
1053
                continue
1054
1054
            else:
1055
 
                self.test_dir = candidate_dir
 
1055
                os.mkdir(candidate_dir)
 
1056
                self.test_home_dir = candidate_dir + '/home'
 
1057
                os.mkdir(self.test_home_dir)
 
1058
                self.test_dir = candidate_dir + '/work'
1056
1059
                os.mkdir(self.test_dir)
1057
1060
                os.chdir(self.test_dir)
1058
1061
                break
1059
 
        os.environ['HOME'] = self.test_dir
1060
 
        os.environ['APPDATA'] = self.test_dir
 
1062
        os.environ['HOME'] = self.test_home_dir
 
1063
        os.environ['APPDATA'] = self.test_home_dir
1061
1064
        def _leaveDirectory():
1062
1065
            os.chdir(_currentdir)
1063
1066
        self.addCleanup(_leaveDirectory)