##// END OF EJS Templates
tests: avoid tests related to directory permission if running with fsmonitor
FUJIWARA Katsunori -
r33428:435f63d1 default
parent child Browse files
Show More
@@ -23,9 +23,7 b' test-largefiles-wireproto.t'
23 23 test-largefiles.t
24 24 test-lfconvert.t
25 25 test-nested-repo.t
26 test-permissions.t
27 26 test-push-warn.t
28 27 test-subrepo-deep-nested-change.t
29 28 test-subrepo-recursion.t
30 29 test-subrepo.t
31 test-tags.t
@@ -61,10 +61,17 b''
61 61 M a
62 62 ? dir/a
63 63 $ chmod -rx dir
64
65 #if no-fsmonitor
66
67 (fsmonitor makes "hg status" avoid accessing to "dir")
68
64 69 $ hg status
65 70 dir: Permission denied
66 71 M a
67 72
73 #endif
74
68 75 Reenable perm to allow deletion:
69 76
70 77 $ chmod +rx dir
@@ -118,13 +118,17 b' Repeat with cold tag cache:'
118 118
119 119 And again, but now unable to write tag cache or lock file:
120 120
121 #if unix-permissions
121 #if unix-permissions no-fsmonitor
122
122 123 $ rm -f .hg/cache/tags2-visible .hg/cache/hgtagsfnodes1
123 124 $ chmod 555 .hg/cache
124 125 $ hg identify
125 126 b9154636be93 tip
126 127 $ chmod 755 .hg/cache
127 128
129 (this block should be protected by no-fsmonitor, because "chmod 555 .hg"
130 makes watchman fail at accessing to files under .hg)
131
128 132 $ chmod 555 .hg
129 133 $ hg identify
130 134 b9154636be93 tip
General Comments 0
You need to be logged in to leave comments. Login now