From f377a637fb11d3aee2891e77c70c5796ea162956 Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Sun, 15 Sep 2019 18:36:00 -0700 Subject: [PATCH] lint ci/script.sh --- ci/script.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/ci/script.sh b/ci/script.sh index eeed674fa4..6bf659605b 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -14,19 +14,25 @@ case "$BINDGEN_JOB" in # Need rustfmt to compare the test expectations. rustup update nightly rustup component add rustfmt - export RUSTFMT="$(rustup which rustfmt)" - cargo test $BINDGEN_PROFILE --features "$BINDGEN_FEATURES" + RUSTFMT="$(rustup which rustfmt)" + export RUSTFMT + cargo test "$BINDGEN_PROFILE" --features "$BINDGEN_FEATURES" ./ci/assert-no-diff.sh ;; "integration") cd ./bindgen-integration - cargo test $BINDGEN_PROFILE --features "$BINDGEN_FEATURES" + cargo test "$BINDGEN_PROFILE" --features "$BINDGEN_FEATURES" + ;; + + "nofeatures") + cargo test "$BINDGEN_PROFILE" --no-default-features + ./ci/assert-no-diff.sh ;; "expectations") cd ./tests/expectations - cargo test $BINDGEN_PROFILE + cargo test "$BINDGEN_PROFILE" ;; "misc") @@ -43,10 +49,7 @@ case "$BINDGEN_JOB" in # TODO: Actually run quickchecks once `bindgen` is reliable enough. cargo test ;; - "nofeatures") - cargo test $BINDGEN_PROFILE --no-default-features - ./ci/assert-no-diff.sh - ;; + *) echo "Error! Unknown \$BINDGEN_JOB: '$BINDGEN_JOB'" exit 1