2023-07-28 15:36:40 +08:00
|
|
|
From c152f534a661e9f2cb0ee125e1087df3c389dcd9 Mon Sep 17 00:00:00 2001
|
2022-09-26 18:38:22 +08:00
|
|
|
From: shenxiangwei <shenxiangwei1@huawei.com>
|
|
|
|
|
Date: Mon, 26 Sep 2022 19:36:25 +0800
|
|
|
|
|
Subject: [PATCH] Skip test error in docker
|
|
|
|
|
|
2023-07-28 15:36:40 +08:00
|
|
|
Signed-off-by: zhoushuiqing <zhoushuiqing2@huawei.com>
|
2022-09-26 18:38:22 +08:00
|
|
|
---
|
2022-10-29 09:38:54 +08:00
|
|
|
tests/ima_hash.test | 5 +++++
|
2022-09-26 18:38:22 +08:00
|
|
|
tests/sign_verify.test | 10 ++++++++++
|
2022-10-29 09:38:54 +08:00
|
|
|
2 files changed, 15 insertions(+)
|
2022-09-26 18:38:22 +08:00
|
|
|
|
2022-10-29 09:38:54 +08:00
|
|
|
diff --git a/tests/ima_hash.test b/tests/ima_hash.test
|
2023-07-28 15:36:40 +08:00
|
|
|
index e88fd59..abf544a 100755
|
2022-10-29 09:38:54 +08:00
|
|
|
--- a/tests/ima_hash.test
|
|
|
|
|
+++ b/tests/ima_hash.test
|
2023-07-28 15:36:40 +08:00
|
|
|
@@ -24,6 +24,11 @@ trap _report_exit_and_cleanup EXIT
|
2022-10-29 09:38:54 +08:00
|
|
|
set -f # disable globbing
|
|
|
|
|
|
|
|
|
|
check() {
|
|
|
|
|
+ cat /proc/fs/ext4/sda1/options | grep xattr
|
|
|
|
|
+ if [ `echo $?` -ne 0 ];then
|
|
|
|
|
+ return "$SKIP"
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
|
|
local alg=$1 prefix=$2 chash=$3 hash
|
|
|
|
|
local file=$alg-hash.txt
|
|
|
|
|
|
2022-09-26 18:38:22 +08:00
|
|
|
diff --git a/tests/sign_verify.test b/tests/sign_verify.test
|
2023-07-28 15:36:40 +08:00
|
|
|
index 2bc365a..eeb75ef 100755
|
2022-09-26 18:38:22 +08:00
|
|
|
--- a/tests/sign_verify.test
|
|
|
|
|
+++ b/tests/sign_verify.test
|
2023-07-28 15:36:40 +08:00
|
|
|
@@ -136,6 +136,11 @@ check_sign() {
|
2022-09-26 18:38:22 +08:00
|
|
|
# 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
|
2022-10-29 09:38:54 +08:00
|
|
|
+ return "$SKIP"
|
2022-09-26 18:38:22 +08:00
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
|
|
local "$@"
|
2023-07-28 15:36:40 +08:00
|
|
|
local key verifykey
|
2022-09-26 18:38:22 +08:00
|
|
|
local FILE=${FILE:-$ALG.txt}
|
2023-07-28 15:36:40 +08:00
|
|
|
@@ -246,6 +251,11 @@ check_verify() {
|
2022-09-26 18:38:22 +08:00
|
|
|
# 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
|
|
|
|
|
--
|
2023-07-28 15:36:40 +08:00
|
|
|
2.33.0
|
2022-09-26 18:38:22 +08:00
|
|
|
|