mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
scripts: fix shell scripts according to shellcheck errors
Unify coding style of shell scripts in accordance with shellcheck errors. Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com>
This commit is contained in:
committed by
Rob Bradford
parent
318caeb9d8
commit
2b2d00653c
@@ -1,12 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# shellcheck disable=SC2068
|
||||
|
||||
source $HOME/.cargo/env
|
||||
source $(dirname "$0")/test-util.sh
|
||||
# shellcheck source=/dev/null
|
||||
source "$HOME"/.cargo/env
|
||||
source "$(dirname "$0")"/test-util.sh
|
||||
|
||||
process_common_args "$@"
|
||||
|
||||
cargo_args=("")
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
if [[ $hypervisor = "mshv" ]]; then
|
||||
cargo_args+=("--features $hypervisor")
|
||||
elif [[ $(uname -m) = "x86_64" ]]; then
|
||||
@@ -14,5 +17,5 @@ elif [[ $(uname -m) = "x86_64" ]]; then
|
||||
fi
|
||||
|
||||
export RUST_BACKTRACE=1
|
||||
cargo test --lib --bins --target $BUILD_TARGET --workspace ${cargo_args[@]} || exit 1
|
||||
cargo test --doc --target $BUILD_TARGET --workspace ${cargo_args[@]} || exit 1
|
||||
cargo test --lib --bins --target "$BUILD_TARGET" --workspace ${cargo_args[@]} || exit 1
|
||||
cargo test --doc --target "$BUILD_TARGET" --workspace ${cargo_args[@]} || exit 1
|
||||
|
||||
Reference in New Issue
Block a user