Skip to content

Commit 44d5a00

Browse files
committed
Fix[CI]: print_cores.py: do not fail if no cores_dir
Signed-off-by: JEAN-LOUIS "JL" LEROY <[email protected]>
1 parent 7142e01 commit 44d5a00

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
export GOPATH=$HOME/go
199199
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
200200
pip install -r ${{ github.workspace }}/src/python/requirements.txt
201-
${{ github.workspace }}/src/integration-tests/run-tests \
201+
ret=${{ github.workspace }}/src/integration-tests/run-tests \
202202
"${{ matrix.mode }} and ${{ matrix.cluster }} and ${{ matrix.consistency }}" \
203203
--log-level ERROR \
204204
--log-file-level=info \
@@ -210,7 +210,11 @@ jobs:
210210
--reruns=3 \
211211
--durations=0 \
212212
-n logical -v -rs
213-
213+
if [ "$ret" = 5 ]; then
214+
echo "No tests collected. Exiting with 0."
215+
exit 0
216+
fi
217+
exit "$ret"
214218
- name: Print core information
215219
if: failure()
216220
run: |

0 commit comments

Comments
 (0)