Skip to content

Commit c7fa6d8

Browse files
committed
Skip iwyu and oclint integration tests on Windows
iwyu and oclint are not installed on Windows CI runners, so integration tests for these tools should be skipped on Windows, matching the behavior of shell command tests.
1 parent 8c825be commit c7fa6d8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_hooks.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ def setup_class(cls):
346346
utils.run_in(["git", "init"], tmpdir)
347347
utils.run_in(["pre-commit", "install"], tmpdir)
348348
for s in table_tests:
349+
# Skip iwyu and oclint on Windows (not installed on CI)
350+
if os.name == "nt" and s["command"] in ["include-what-you-use", "oclint"]:
351+
continue
352+
349353
s["args"] = [arg.replace("{repo_dir}", os.getcwd()) for arg in s["args"]]
350354
s["files"] = [arg.replace("{test_dir}", tmpdir) for arg in s["files"]]
351355
s["expd_output"] = s["expd_output"].replace("{test_dir}", tmpdir)

0 commit comments

Comments
 (0)