mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-12 10:16:48 +00:00
Fix shellcheck warnings and notes identified by running shellcheck --severity=style. Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
29 lines
682 B
Bash
29 lines
682 B
Bash
#!/bin/bash
|
|
#
|
|
# Copyright (c) 2023 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
kata_deploy_dir=$(dirname "$(readlink -f "$0")")
|
|
# shellcheck source=/dev/null
|
|
source "${kata_deploy_dir}/../../common.bash"
|
|
|
|
# Setting to "yes" enables fail fast, stopping execution at the first failed test.
|
|
export BATS_TEST_FAIL_FAST="${BATS_TEST_FAIL_FAST:-no}"
|
|
|
|
if [[ -n "${KATA_DEPLOY_TEST_UNION:-}" ]]; then
|
|
KATA_DEPLOY_TEST_UNION=("${KATA_DEPLOY_TEST_UNION}")
|
|
else
|
|
KATA_DEPLOY_TEST_UNION=( \
|
|
"kata-deploy.bats" \
|
|
"kata-deploy-custom-runtimes.bats" \
|
|
"kata-deploy-lifecycle.bats" \
|
|
)
|
|
fi
|
|
|
|
run_bats_tests "${kata_deploy_dir}" KATA_DEPLOY_TEST_UNION
|