From: Manuel Traut Date: Sun, 24 Nov 2024 13:55:06 +0100 Subject: cargo-test: Remove params to allow offline tests --- meson.build | 2 -- scripts/test.sh | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 3becb46..e8564f3 100644 --- a/meson.build +++ b/meson.build @@ -79,8 +79,6 @@ meson.add_dist_script( test( 'cargo-test', test_script, - args: meson.project_build_root(), - workdir: meson.project_source_root(), timeout: 3000 ) diff --git a/scripts/test.sh b/scripts/test.sh index 0695cf6..6c00dc7 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -5,8 +5,8 @@ set -o pipefail 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" +#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 @@ -15,5 +15,5 @@ then export PATH="$PATH:/usr/lib/sdk/rust-stable/bin" fi -cargo fetch --locked +#cargo fetch --locked cargo test --all-features --offline -- --test-threads=1 --nocapture