Skip to content

Commit 4f6fe27

Browse files
committed
tests: disable hook executability tests in MINGW
Executable bits in Windows environment are not checked by StGit; hooks thus run regardless.
1 parent 8fbfb11 commit 4f6fe27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/t7504-commit-msg-hook.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,24 +244,24 @@ test_expect_success 'squash --no-verify with failing hook (editor)' '
244244
'
245245

246246
chmod -x "$HOOK"
247-
test_expect_success 'refresh with non-executable hook' '
247+
test_expect_success !MINGW 'refresh with non-executable hook' '
248248
echo "content" >>file &&
249249
stg refresh -m "content"
250250
'
251251

252-
test_expect_success 'refresh with non-executable hook (editor)' '
252+
test_expect_success !MINGW 'refresh with non-executable hook (editor)' '
253253
echo "content again" >>file &&
254254
echo "content again" >FAKE_MSG &&
255255
GIT_EDITOR="\"\$FAKE_EDITOR2\"" stg refresh -e &&
256256
commit_msg_is "content again"
257257
'
258258

259-
test_expect_success 'refresh --no-verify with non-executable hook' '
259+
test_expect_success !MINGW 'refresh --no-verify with non-executable hook' '
260260
echo "more content" >>file &&
261261
stg refresh --no-verify -m "more content"
262262
'
263263

264-
test_expect_success 'refresh --no-verify with non-executable hook (editor)' '
264+
test_expect_success !MINGW 'refresh --no-verify with non-executable hook (editor)' '
265265
echo "even more content" >>file &&
266266
echo "even more content" >FAKE_MSG &&
267267
GIT_EDITOR="\"\$FAKE_EDITOR2\"" stg refresh -e --no-verify &&

0 commit comments

Comments
 (0)