From ab3df57e86594cc55d453c44d64a44745b2bbdf2 Mon Sep 17 00:00:00 2001 From: Yang Xu Date: Sun, 11 Oct 2020 13:51:35 +0800 Subject: [PATCH 1/1] generic/611: Use _getfattr instead of GETFATTR_PROG When using old version(such as getfattr 2.4.46) getfattr command, it has the following output, touch file setfattr -n user.a file getfattr --absolute-names -n user.a file user.a on new getfattr, it reports the following output, getfattr --absolute-names -n user.a file user.a="" The {=""} will break the golden image, so use _getfattr to filter the redundant ="" at the end if it has. Signed-off-by: Yang Xu Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- tests/generic/611 | 2 +- tests/generic/611.out | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/generic/611 b/tests/generic/611 index f4158bb3..2c196f95 100755 --- a/tests/generic/611 +++ b/tests/generic/611 @@ -51,7 +51,7 @@ touch "${localfile}" _scratch_cycle_mount # If the target bug isn't fixed, getfattr fails -${GETFATTR_PROG} --absolute-names -n user.a $localfile | grep 'user.a' +_getfattr --absolute-names -n user.a $localfile | grep 'user.a' status=0 exit diff --git a/tests/generic/611.out b/tests/generic/611.out index 1ab12434..8ccf52f0 100644 --- a/tests/generic/611.out +++ b/tests/generic/611.out @@ -1,2 +1,2 @@ QA output created by 611 -user.a="" +user.a -- 2.30.2