diff --git a/scripts/test.sh b/scripts/test.sh index 9b17ee8..47747fe 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -6,16 +6,14 @@ set -x # $1 Passed by meson and should be the builddir export CARGO_TARGET_DIR="$1/target/" +export CARGO_HOME="$CARGO_TARGET_DIR/cargo-home" # If this is run inside a flatpak envrironment, append the export the rustc # sdk-extension binaries to the path if [ -f "/.flatpak-info" ] then export PATH="$PATH:/usr/lib/sdk/rust-stable/bin" - # This assumes its run inside a Builder terminal - export CARGO_TARGET_DIR="$BUILDDIR/target/" fi -export CARGO_HOME="$CARGO_TARGET_DIR/cargo-home" - -cargo test -- --test-threads=1 --nocapture +cargo fetch --locked +cargo test --all-features --offline -- --test-threads=1 --nocapture