comparison tests/test-lock-badness.t @ 20008:e54a078153f7

tests: skip tests that require not having root (issue4089) This adds a new root hghave to test against. Almost all of these are a subset of unix-permissions, but that is also used for checking exec bit handling.
author Matt Mackall <mpm@selenic.com>
date Thu, 14 Nov 2013 18:07:43 -0600
parents a1914d214579
children c697b70f295f
comparison
equal deleted inserted replaced
20007:23edc6673f0d 20008:e54a078153f7
1 $ "$TESTDIR/hghave" unix-permissions || exit 80 1 #if unix-permissions no-root
2
3 $ hg init a 2 $ hg init a
4 $ echo a > a/a 3 $ echo a > a/a
5 $ hg -R a ci -A -m a 4 $ hg -R a ci -A -m a
6 adding a 5 adding a
7 6
19 pushing to a 18 pushing to a
20 abort: could not lock repository a: Permission denied 19 abort: could not lock repository a: Permission denied
21 [255] 20 [255]
22 21
23 $ chmod 700 a/.hg/store 22 $ chmod 700 a/.hg/store
24 23 #endif