mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-04-26 18:43:06 +00:00
tools: Fix shellcheck issues in test_config.sh
Fix shellcheck warnings and notes identified by running shellcheck --severity=style. Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
This commit is contained in:
@@ -5,11 +5,13 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# List of distros not to test, when running all tests with test_images.sh
|
||||
# shellcheck disable=SC2034
|
||||
typeset -a skipWhenTestingAll
|
||||
typeset -a distros
|
||||
# shellcheck disable=SC2034
|
||||
arch="$(uname -m)"
|
||||
sdir="${BASH_SOURCE[0]%/*}"
|
||||
for distro in $(${sdir}/../rootfs-builder/rootfs.sh -l); do
|
||||
for distro in $("${sdir}"/../rootfs-builder/rootfs.sh -l); do
|
||||
distros+=("${distro}")
|
||||
done
|
||||
test_distros=()
|
||||
@@ -27,7 +29,7 @@ distro_in_set() {
|
||||
shift
|
||||
local dt
|
||||
for dt in "$@"; do
|
||||
if [ "${dt}" == "${d}" ]; then
|
||||
if [[ "${dt}" == "${d}" ]]; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user