Skip to content

Commit e6ecb3f

Browse files
committed
chore(workflows): update find options
1 parent eb6a0cf commit e6ecb3f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/tests-with-pydebug.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ jobs:
351351
352352
CORE_DUMP_FILES="$(
353353
find . -type d -path "./venv" -prune \
354-
-o -iname "core.*.[1-9]*" -o -iname "core_*.dmp" -print
354+
-o '(' -iname "core.*.[1-9]*" -o -iname "core_*.dmp" ')' -print
355355
)"
356356
if [[ -n "${CORE_DUMP_FILES}" ]]; then
357357
echo "::error::Coredump files found, indicating a crash during tests." >&2
@@ -376,7 +376,7 @@ jobs:
376376
run: |
377377
CORE_DUMP_FILES="$(
378378
find . -type d -path "./venv" -prune \
379-
-o -iname "core.*.[1-9]*" -o -iname "core_*.dmp" -print
379+
-o '(' -iname "core.*.[1-9]*" -o -iname "core_*.dmp" ')' -print
380380
)"
381381
if [[ -n "${CORE_DUMP_FILES}" ]]; then
382382
echo "Found core dumps:"

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ jobs:
216216
fi
217217
CORE_DUMP_FILES="$(
218218
find . -type d -path "./venv" -prune \
219-
-o -iname "core.*.[1-9]*" -o -iname "core_*.dmp" -print
219+
-o '(' -iname "core.*.[1-9]*" -o -iname "core_*.dmp" ')' -print
220220
)"
221221
if [[ -n "${CORE_DUMP_FILES}" ]]; then
222222
echo "::error::Coredump files found, indicating a crash during tests." >&2
@@ -275,7 +275,7 @@ jobs:
275275
fi
276276
CORE_DUMP_FILES="$(
277277
find . -type d -path "./venv" -prune \
278-
-o -iname "core.*.[1-9]*" -o -iname "core_*.dmp" -print
278+
-o '(' -iname "core.*.[1-9]*" -o -iname "core_*.dmp" ')' -print
279279
)"
280280
if [[ -n "${CORE_DUMP_FILES}" ]]; then
281281
echo "::error::Coredump files found, indicating a crash during tests." >&2
@@ -319,7 +319,7 @@ jobs:
319319
fi
320320
CORE_DUMP_FILES="$(
321321
find . -type d -path "./venv" -prune \
322-
-o -iname "core.*.[1-9]*" -o -iname "core_*.dmp" -print
322+
-o '(' -iname "core.*.[1-9]*" -o -iname "core_*.dmp" ')' -print
323323
)"
324324
if [[ -n "${CORE_DUMP_FILES}" ]]; then
325325
echo "::error::Coredump files found, indicating a crash during tests." >&2
@@ -343,7 +343,7 @@ jobs:
343343
344344
CORE_DUMP_FILES="$(
345345
find . -type d -path "./venv" -prune \
346-
-o -iname "core.*.[1-9]*" -o -iname "core_*.dmp" -print
346+
-o '(' -iname "core.*.[1-9]*" -o -iname "core_*.dmp" ')' -print
347347
)"
348348
if [[ -n "${CORE_DUMP_FILES}" ]]; then
349349
echo "::error::Coredump files found, indicating a crash during tests." >&2
@@ -368,7 +368,7 @@ jobs:
368368
run: |
369369
CORE_DUMP_FILES="$(
370370
find . -type d -path "./venv" -prune \
371-
-o -iname "core.*.[1-9]*" -o -iname "core_*.dmp" -print
371+
-o '(' -iname "core.*.[1-9]*" -o -iname "core_*.dmp" ')' -print
372372
)"
373373
if [[ -n "${CORE_DUMP_FILES}" ]]; then
374374
echo "Found core dumps:"

0 commit comments

Comments
 (0)