Add RUSTFLAGS=-Awarnings to runtests.sh

If there are warnings in the crate build, we should avoid them while
running each individual test, otherwise we get nonstop warnings.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2024-09-30 16:32:52 -07:00
parent 8be3586e42
commit 0a21f01ea7

View File

@@ -10,6 +10,9 @@ here="$(realpath "$(dirname "$0")")"
tests="$here/tests" tests="$here/tests"
flags="--quiet --release" flags="--quiet --release"
# Disable warnings while running tests
export RUSTFLAGS=-Awarnings
echo "building" echo "building"
cargo build $flags || die "build failed" cargo build $flags || die "build failed"