Skip to content

Commit

Permalink
run tests with a fresh target directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroalbini committed Feb 24, 2023
1 parent 6874f57 commit 7058cf1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,18 @@ if [ "$TARGET" = "s390x-unknown-linux-gnu" ]; then
sleep 1
done
else
# rm -rf target is executed before each build to ensure there are no leftover
# caches from previous builds. This happened at least in the FreeBSD CI,
# where the build script didn't re-execute across builds.

rm -rf target
cargo test --no-default-features --manifest-path libc-test/Cargo.toml \
--target "${TARGET}" ${LIBC_CI_ZBUILD_STD+"-Zbuild-std"}

rm -rf target
cargo test --manifest-path libc-test/Cargo.toml --target "${TARGET}" ${LIBC_CI_ZBUILD_STD+"-Zbuild-std"}

rm -rf target
RUST_BACKTRACE=1 cargo test --features extra_traits --manifest-path libc-test/Cargo.toml \
--target "${TARGET}" ${LIBC_CI_ZBUILD_STD+"-Zbuild-std"}
fi

0 comments on commit 7058cf1

Please sign in to comment.