File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
main/python/opengrok_tools/utils Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -607,8 +607,8 @@ def check_commands(commands):
607
607
format (name , COMMANDS_PROPERTY , value ))
608
608
return False
609
609
610
- if not os .path .isfile (value ):
611
- logger .error ("path for '{}' under '{}' is not a file: {}" .
610
+ if not os .path .isfile (value ) and not os . path . isdir ( value ) :
611
+ logger .error ("path for '{}' under '{}' is not a file or directory : {}" .
612
612
format (name , COMMANDS_PROPERTY , value ))
613
613
return False
614
614
Original file line number Diff line number Diff line change @@ -132,6 +132,12 @@ def test_configuration_commands():
132
132
assert check_configuration (config )
133
133
134
134
135
+ @posix_only
136
+ def test_configuration_commands_dir ():
137
+ config = {COMMANDS_PROPERTY : {"teamware" : "/usr/bin" }}
138
+ assert check_configuration (config )
139
+
140
+
135
141
@posix_only
136
142
def test_invalid_project_config_nonexec_hook ():
137
143
with tempfile .TemporaryDirectory () as tmpdir :
You can’t perform that action at this time.
0 commit comments