1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

CI: fix FreeBSD CI passed when tests failed

This commit is contained in:
Miles Liu 2022-11-17 21:16:05 +08:00
parent 2f311c7a2d
commit 3d51291685
No known key found for this signature in database
GPG key ID: 4DB9B32F9B24A7A9

View file

@ -939,14 +939,16 @@ jobs:
cargo -V
rustc -V
#
# To ensure that files are cleaned up, we don't want to exit on error
set +e
cd "${WORKSPACE}"
unset FAULT
cargo build || FAULT=1
cargo test --features "${{ matrix.job.features }}" || FAULT=1
cargo test --features "${{ matrix.job.features }}" -p uucore || FAULT=1
if (test -z "\$FAULT"); then cargo test --features '${{ matrix.job.features }}' || FAULT=1 ; fi
if (test -z "\$FAULT"); then cargo test --features '${{ matrix.job.features }}' -p uucore || FAULT=1 ; fi
# Clean to avoid to rsync back the files
cargo clean
if (test -n "$FAULT"); then exit 1 ; fi
if (test -n "\$FAULT"); then exit 1 ; fi
EOF
coverage: