From 389ae97020b5f634b2e0a2bf255676ab037c64c8 Mon Sep 17 00:00:00 2001 From: Zhongtao Hu Date: Thu, 4 Aug 2022 17:06:36 +0800 Subject: [PATCH] runtime-rs:skip the test when the arch is s390x github.com/kata-containers/tests#4986.To avoid returning an error when running the ci, we just skip the test if the arch is s390x Fixes: #4816 Signed-off-by: Zhongtao Hu --- src/runtime-rs/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/runtime-rs/Makefile b/src/runtime-rs/Makefile index 9ec6bd1f3..48c570354 100644 --- a/src/runtime-rs/Makefile +++ b/src/runtime-rs/Makefile @@ -21,14 +21,19 @@ ARCH_DIR = arch ARCH_FILE_SUFFIX = -options.mk ARCH_FILE = $(ARCH_DIR)/$(ARCH)$(ARCH_FILE_SUFFIX) - ifeq ($(ARCH), s390x) -##TARGET default: build code default: @echo "s390x not support currently" exit 0 +test: + @echo "s390x not support currently" + exit 0 else +##TARGET default: build code default: runtime show-header +#TARGET test: run cargo tests +test: + @cargo test --all --target $(TRIPLE) $(EXTRA_RUSTFEATURES) -- --nocapture endif ifeq (,$(realpath $(ARCH_FILE))) @@ -366,10 +371,6 @@ clean: vendor: @cargo vendor -#TARGET test: run cargo tests -test: - @cargo test --all --target $(TRIPLE) $(EXTRA_RUSTFEATURES) -- --nocapture - ##TARGET check: run test check: $(GENERATED_FILES) standard_rust_check