Files
kata-containers/tests/functional/kata-deploy/run-kata-deploy-tests.sh
Fabiano Fidêncio 143f9a7882 tests: Fix shellcheck issues in run-kata-deploy-tests.sh
Fix shellcheck warnings and notes identified by running
shellcheck --severity=style.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
2026-04-24 08:14:08 +02:00

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