Skip to content

Commit 53060e3

Browse files
committed
test(conftest): support @pytest.mark.bashcomp(required_cmd=True)
1 parent 5e9c9a0 commit 53060e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: test/t/conftest.py

+3
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@ def bash(request) -> pexpect.spawn:
305305
)
306306
if match:
307307
cmd = match.group(1)
308+
if marker and marker.kwargs and marker.kwargs.get("require_cmd", False):
309+
if not is_bash_type(bash, cmd):
310+
pytest.skip("Command not found")
308311

309312
request.cls.cmd = cmd
310313

0 commit comments

Comments
 (0)