Skip to content

Commit f377a63

Browse files
lopopoloemilio
authored andcommitted
lint ci/script.sh
1 parent 7ed4df1 commit f377a63

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

ci/script.sh

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,25 @@ case "$BINDGEN_JOB" in
1414
# Need rustfmt to compare the test expectations.
1515
rustup update nightly
1616
rustup component add rustfmt
17-
export RUSTFMT="$(rustup which rustfmt)"
18-
cargo test $BINDGEN_PROFILE --features "$BINDGEN_FEATURES"
17+
RUSTFMT="$(rustup which rustfmt)"
18+
export RUSTFMT
19+
cargo test "$BINDGEN_PROFILE" --features "$BINDGEN_FEATURES"
1920
./ci/assert-no-diff.sh
2021
;;
2122

2223
"integration")
2324
cd ./bindgen-integration
24-
cargo test $BINDGEN_PROFILE --features "$BINDGEN_FEATURES"
25+
cargo test "$BINDGEN_PROFILE" --features "$BINDGEN_FEATURES"
26+
;;
27+
28+
"nofeatures")
29+
cargo test "$BINDGEN_PROFILE" --no-default-features
30+
./ci/assert-no-diff.sh
2531
;;
2632

2733
"expectations")
2834
cd ./tests/expectations
29-
cargo test $BINDGEN_PROFILE
35+
cargo test "$BINDGEN_PROFILE"
3036
;;
3137

3238
"misc")
@@ -43,10 +49,7 @@ case "$BINDGEN_JOB" in
4349
# TODO: Actually run quickchecks once `bindgen` is reliable enough.
4450
cargo test
4551
;;
46-
"nofeatures")
47-
cargo test $BINDGEN_PROFILE --no-default-features
48-
./ci/assert-no-diff.sh
49-
;;
52+
5053
*)
5154
echo "Error! Unknown \$BINDGEN_JOB: '$BINDGEN_JOB'"
5255
exit 1

0 commit comments

Comments
 (0)