Skip to content

Commit af8b92a

Browse files
author
Vladimir Kotal
committed
perform hook executable tests only on Unix systems
1 parent a1ee77a commit af8b92a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opengrok-tools/src/test/python/test_mirror.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def test_invalid_project_config_hooknames():
8181
assert not check_project_configuration(config, hookdir=tmpdir)
8282

8383

84+
@pytest.mark.skipif(not os.name.startswith("posix"), reason="requires posix")
8485
def test_invalid_project_config_nonexec_hook():
8586
with tempfile.TemporaryDirectory() as tmpdir:
8687
with open(os.path.join(tmpdir, "foo.sh"), 'w+') as tmpfile:

0 commit comments

Comments
 (0)