Skip to content

Commit dc93e09

Browse files
author
Vladimir Kotal
committed
skip test_cleanup() on Solaris
1 parent 22a9278 commit dc93e09

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#
2525

2626
import os
27+
import sys
2728

2829
import pytest
2930
import tempfile
@@ -130,8 +131,10 @@ def test_cleanup_exception():
130131
cleanup=cleanup))
131132

132133

134+
# /bin/cat returns 2 on Solaris
133135
@pytest.mark.skipif(not os.path.exists('/usr/bin/touch') or
134-
not os.path.exists('/bin/cat'),
136+
not os.path.exists('/bin/cat') or
137+
not sys.platform != "sunos5",
135138
reason="requires Unix")
136139
def test_cleanup():
137140
with tempfile.TemporaryDirectory() as tmpdir:

0 commit comments

Comments
 (0)