~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_permissions.py

  • Committer: Martin Pool
  • Date: 2009-09-15 01:52:34 UTC
  • mfrom: (4685 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4689.
  • Revision ID: mbp@sourcefrog.net-20090915015234-lbvl4euj2z353zjl
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
                                          ' permission logic')
92
92
        if sys.platform == 'win32':
93
93
            raise tests.TestNotApplicable('chmod has no effect on win32')
94
 
        elif sys.platform == 'darwin':
95
 
            # OS X creates temp dirs with the 'wheel' group, which users are
96
 
            # not likely to be in, and this prevents us from setting the sgid
97
 
            # bit
 
94
        elif sys.platform == 'darwin' or sys.platform.startswith('freebsd'):
 
95
            # OS X (and FreeBSD) create temp dirs with the 'wheel' group, which
 
96
            # users are not likely to be in, and this prevents us from setting
 
97
            # the sgid bit
98
98
            os.chown(self.test_dir, os.getuid(), os.getgid())
99
99
        # also, these are BzrBranch format specific things..
100
100
        t = self.make_branch_and_tree('.')