mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-13 11:49:44 +00:00
Fix shellcheck warnings and notes identified by running shellcheck --severity=style. Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
38 lines
719 B
Bash
38 lines
719 B
Bash
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) 2018 SUSE LLC
|
|
#
|
|
# 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
|
|
distros+=("${distro}")
|
|
done
|
|
test_distros=()
|
|
test_distros+=("ubuntu")
|
|
|
|
skipForRustDistros=()
|
|
skipForRustDistros+=("alpine")
|
|
|
|
skipForRustArch=()
|
|
skipForRustArch+=("ppc64le")
|
|
skipForRustArch+=("s390x")
|
|
|
|
distro_in_set() {
|
|
local d=$1
|
|
shift
|
|
local dt
|
|
for dt in "$@"; do
|
|
if [[ "${dt}" == "${d}" ]]; then
|
|
return 0
|
|
fi
|
|
done
|
|
return 1
|
|
}
|