t9200: do not test -x bit if the filesystem does not support it.
The last test in t9200 wants to see if executable bit is retained, which has no chance of succeeding on a filesystem that does not handle executable bit correctly. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Jan 31, 2007 at 14:25 UTC
3c23d66fc30e8805a2b66708acd3f0da921085ba
1 file changed
+6
t/t9200-git-cvsexportcommit.sh
+6
@@ -197,6 +197,10 @@ test_expect_success \
197
! git-cvsexportcommit -c $id
198
)'
199
200
+case "$(git repo-config --bool core.filemode)" in
201
+false)
202
+ ;;
203
+*)
204
test_expect_success \
205
'Retain execute bit' \
206
'mkdir G &&
@@ -211,5 +215,7 @@ test_expect_success \
215
test -x G/on &&
216
! test -x G/off
217
)'
218
+ ;;
219
+esac
220
221
test_done