Skip to content

Commit 3301d2b

Browse files
tulinkryVladimir Kotal
authored andcommitted
checkstyle line-length
1 parent f666b5b commit 3301d2b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,22 @@ def system_binary(name):
3232
"""
3333
Creates an argument of {name}_binary which automatically
3434
skips the test execution when the binary is not available on the system.
35+
The full path to the binary on the system is then available as an argument {name}_binary.
3536
3637
:param name: the binary name (the command)
3738
"""
3839

3940
def decorator(fn):
4041
return pytest.mark.parametrize(
4142
('{}_binary'.format(name)), [
42-
pytest.param('/bin/{}'.format(name), marks=pytest.mark.skipif(not os.path.exists('/bin/{}'.format(name)), reason="requires /bin binaries")),
43-
pytest.param('/usr/bin/{}'.format(name), marks=pytest.mark.skipif(not os.path.exists('/usr/bin/{}'.format(name)), reason="requires /usr/bin binaries")),
43+
pytest.param('/bin/{}'.format(name), marks=pytest.mark.skipif(
44+
not os.path.exists('/bin/{}'.format(name)),
45+
reason="requires /bin binaries"
46+
)),
47+
pytest.param('/usr/bin/{}'.format(name), marks=pytest.mark.skipif(
48+
not os.path.exists('/usr/bin/{}'.format(name)),
49+
reason="requires /usr/bin binaries"
50+
)),
4451
])(fn)
4552

4653
return decorator

0 commit comments

Comments
 (0)