Skip to content

Commit 1bbc1e7

Browse files
committed
Explicitly set RUSTDOCFLAGS
shellcheck emits these two warnings: SC2097: This assignment is only seen by the forked process. SC2098: This expansion will not see the mentioned assignment. Set `RUSTDOCFLAGS` explicitly to `--cfg=fuzzing` instead of trying to use the `RUSTFLAGS` variable.
1 parent bf95a02 commit 1bbc1e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ if [ "$DO_FEATURE_MATRIX" = true ]; then
4646
cargo test --all --no-default-features --features="std,$feature"
4747
done
4848
# Other combos
49-
RUSTFLAGS='--cfg=fuzzing' RUSTDOCFLAGS=$RUSTFLAGS cargo test --all
50-
RUSTFLAGS='--cfg=fuzzing' RUSTDOCFLAGS=$RUSTFLAGS cargo test --all --features="$FEATURES"
49+
RUSTFLAGS='--cfg=fuzzing' RUSTDOCFLAGS='--cfg=fuzzing' cargo test --all
50+
RUSTFLAGS='--cfg=fuzzing' RUSTDOCFLAGS='--cfg=fuzzing' cargo test --all --features="$FEATURES"
5151
cargo test --all --features="rand serde"
5252
cargo test --features="$STD_FEATURES"
5353

0 commit comments

Comments
 (0)