/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2011-03-03 12:50:21 UTC
  • mfrom: (5697 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5703.
  • Revision ID: jelmer@samba.org-20110303125021-ziry6a0qsr9l72x5
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

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