scripts: dev_cli: Remove unnecessary spaces

Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
Muminul Islam 2020-12-02 12:46:02 -08:00 committed by Samuel Ortiz
parent 27b5f8d7e3
commit d79594aa3f

View File

@ -290,7 +290,6 @@ cmd_tests() {
libc="gnu" libc="gnu"
arg_vols="" arg_vols=""
hypervisor="kvm" hypervisor="kvm"
saved_args=("$@")
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case "$1" in case "$1" in
"-h"|"--help") { cmd_help; exit 1; } ;; "-h"|"--help") { cmd_help; exit 1; } ;;
@ -324,6 +323,8 @@ cmd_tests() {
if [[ "$hypervisor" != "kvm" ]]; then if [[ "$hypervisor" != "kvm" ]]; then
die "Hypervisor value must be kvm" die "Hypervisor value must be kvm"
fi fi
set -- "$@" '--hypervisor' $hypervisor
process_volumes_args process_volumes_args
target="$(uname -m)-unknown-linux-${libc}" target="$(uname -m)-unknown-linux-${libc}"
cflags="" cflags=""
@ -346,7 +347,7 @@ cmd_tests() {
--env CFLAGS="$cflags" \ --env CFLAGS="$cflags" \
--env TARGET_CC="$target_cc" \ --env TARGET_CC="$target_cc" \
"$CTR_IMAGE" \ "$CTR_IMAGE" \
./scripts/run_unit_tests.sh "${saved_args[@]}" || fix_dir_perms $? || exit $? ./scripts/run_unit_tests.sh "$@" || fix_dir_perms $? || exit $?
fi fi
if [ "$cargo" = true ] ; then if [ "$cargo" = true ] ; then
@ -356,7 +357,7 @@ cmd_tests() {
--rm \ --rm \
--volume "$CLH_ROOT_DIR:$CTR_CLH_ROOT_DIR" $exported_volumes \ --volume "$CLH_ROOT_DIR:$CTR_CLH_ROOT_DIR" $exported_volumes \
"$CTR_IMAGE" \ "$CTR_IMAGE" \
./scripts/run_cargo_tests.sh "${saved_args[@]}" || fix_dir_perms $? || exit $? ./scripts/run_cargo_tests.sh "$@" || fix_dir_perms $? || exit $?
fi fi
if [ "$integration" = true ] ; then if [ "$integration" = true ] ; then
@ -375,7 +376,7 @@ cmd_tests() {
--env USER="root" \ --env USER="root" \
--env CH_LIBC="${libc}" \ --env CH_LIBC="${libc}" \
"$CTR_IMAGE" \ "$CTR_IMAGE" \
./scripts/run_integration_tests_$(uname -m).sh "${saved_args[@]}" || fix_dir_perms $? || exit $? ./scripts/run_integration_tests_$(uname -m).sh "$@" || fix_dir_perms $? || exit $?
fi fi
if [ "$integration_sgx" = true ] ; then if [ "$integration_sgx" = true ] ; then
@ -394,7 +395,7 @@ cmd_tests() {
--env USER="root" \ --env USER="root" \
--env CH_LIBC="${libc}" \ --env CH_LIBC="${libc}" \
"$CTR_IMAGE" \ "$CTR_IMAGE" \
./scripts/run_integration_tests_sgx.sh "${saved_args[@]}" || fix_dir_perms $? || exit $? ./scripts/run_integration_tests_sgx.sh "$@" || fix_dir_perms $? || exit $?
fi fi
if [ "$integration_windows" = true ] ; then if [ "$integration_windows" = true ] ; then
@ -413,7 +414,7 @@ cmd_tests() {
--env USER="root" \ --env USER="root" \
--env CH_LIBC="${libc}" \ --env CH_LIBC="${libc}" \
"$CTR_IMAGE" \ "$CTR_IMAGE" \
./scripts/run_integration_tests_windows.sh "${saved_args[@]}" || fix_dir_perms $? || exit $? ./scripts/run_integration_tests_windows.sh "$@" || fix_dir_perms $? || exit $?
fi fi
fix_dir_perms $? fix_dir_perms $?
} }