From 97f38c77061d0c95b41f59479beea7fcdfa2a9f0 Mon Sep 17 00:00:00 2001 From: Marco Vedovati Date: Tue, 30 Oct 2018 19:38:25 +0100 Subject: [PATCH] tests: allow euleros rootfs build to fail Update test config for euleros to allow build failures. Signed-off-by: Marco Vedovati --- rootfs-builder/euleros/config.sh | 3 +++ tests/test_config.sh | 13 +++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/rootfs-builder/euleros/config.sh b/rootfs-builder/euleros/config.sh index 2fcf8a735..d6f849dc2 100644 --- a/rootfs-builder/euleros/config.sh +++ b/rootfs-builder/euleros/config.sh @@ -22,3 +22,6 @@ INIT_PROCESS=systemd # List of zero or more architectures to exclude from build, # as reported by `uname -m` ARCH_EXCLUDE_LIST=() +# Allow the build to fail without generating an error. +# For more info see: https://github.com/kata-containers/osbuilder/issues/190 +BUILD_CAN_FAIL=1 diff --git a/tests/test_config.sh b/tests/test_config.sh index d91cdeab8..4e7627447 100644 --- a/tests/test_config.sh +++ b/tests/test_config.sh @@ -3,15 +3,12 @@ # # SPDX-License-Identifier: Apache-2.0 - -if [ -n "${CI:-}" ]; then - # "Not testing eurleros on Jenkins or Travis: - # (unreliable mirros, see: https://github.com/kata-containers/osbuilder/issues/182) - # (timeout, see: https://github.com/kata-containers/osbuilder/issues/46)" - skipWhenTestingAll=(euleros) -fi +# List of distros not to test, when running all tests with test_images.sh +typeset -a skipWhenTestingAll if [ -n "${TRAVIS:-}" ]; then - skipWhenTestingAll+=() + # (travis may timeout with euleros, see: + # https://github.com/kata-containers/osbuilder/issues/46)" + skipWhenTestingAll+=(euleros) fi