mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-04-26 18:43:06 +00:00
tests: arm64: Skip tests which do not have a multi-arch image
The image used has some special (as weird) properties that are being taking advantage of to implement policy related tests. Changing the image is a no-go at this point, otherwise we break the tests ... so let's just skip those for now. Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
This commit is contained in:
@@ -11,6 +11,7 @@ load "${BATS_TEST_DIRNAME}/tests_common.sh"
|
||||
|
||||
setup() {
|
||||
auto_generate_policy_enabled || skip "Auto-generated policy tests are disabled."
|
||||
[[ "$(uname -m)" == "x86_64" ]] || skip "Image used in the tests is not multi-arch."
|
||||
setup_common || die "setup_common failed"
|
||||
|
||||
deployment_name="policy-redis-deployment"
|
||||
@@ -100,6 +101,7 @@ test_deployment_policy_error() {
|
||||
|
||||
teardown() {
|
||||
auto_generate_policy_enabled || skip "Auto-generated policy tests are disabled."
|
||||
[[ "$(uname -m)" == "x86_64" ]] || skip "Image used in the tests is not multi-arch."
|
||||
|
||||
# Pod debugging information. Don't print the "Message:" line because it contains a truncated policy log.
|
||||
info "Pod ${deployment_name}:"
|
||||
|
||||
@@ -11,6 +11,7 @@ load "${BATS_TEST_DIRNAME}/tests_common.sh"
|
||||
|
||||
setup() {
|
||||
auto_generate_policy_enabled || skip "Auto-generated policy tests are disabled."
|
||||
[[ "$(uname -m)" == "x86_64" ]] || skip "Image used in the tests is not multi-arch."
|
||||
setup_common || die "setup_common failed"
|
||||
|
||||
deployment_name="policy-redis-deployment"
|
||||
@@ -60,6 +61,7 @@ test_deployment_policy_error() {
|
||||
|
||||
teardown() {
|
||||
auto_generate_policy_enabled || skip "Auto-generated policy tests are disabled."
|
||||
[[ "$(uname -m)" == "x86_64" ]] || skip "Image used in the tests is not multi-arch."
|
||||
|
||||
# Pod debugging information. Don't print the "Message:" line because it contains a truncated policy log.
|
||||
info "Pod ${deployment_name}:"
|
||||
|
||||
Reference in New Issue
Block a user