~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Andrew Bennetts
  • Date: 2010-01-12 03:53:21 UTC
  • mfrom: (4948 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4964.
  • Revision ID: andrew.bennetts@canonical.com-20100112035321-hofpz5p10224ryj3
Merge lp:bzr, resolving conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
 
18
18
"""Tests for bzr setting permissions.
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('.')