Skip to content

Commit f310ebe

Browse files
committed
test: make glob pattern test windows-friendly
1 parent 36168f1 commit f310ebe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/run.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ fn run_glob_patterns_with_multiple_hooks() -> Result<()> {
8686
hooks:
8787
- id: echo-py
8888
name: echo-py
89-
entry: bash -c 'echo PY:$@' _
89+
entry: python3 -c "import sys; print('PY:' + ' '.join(sys.argv[2:]))" _
9090
language: system
9191
files:
9292
glob: src/**/*.py
9393
verbose: true
9494
- id: echo-md
9595
name: echo-md
96-
entry: bash -c 'echo MD:$@' _
96+
entry: python3 -c "import sys; print('MD:' + ' '.join(sys.argv[2:]))" _
9797
language: system
9898
files:
9999
glob: "**/*.md"

0 commit comments

Comments
 (0)