generic/611: Use _getfattr instead of GETFATTR_PROG
authorYang Xu <xuyang2018.jy@cn.fujitsu.com>
Sun, 11 Oct 2020 05:51:35 +0000 (13:51 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 11 Oct 2020 08:22:14 +0000 (16:22 +0800)
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 <xuyang2018.jy@cn.fujitsu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/611
tests/generic/611.out

index f4158bb37f233de2aa313d1ed929d430a7001962..2c196f9565fb44d9ebb2be8545213761225c08c4 100755 (executable)
@@ -51,7 +51,7 @@ touch "${localfile}"
 _scratch_cycle_mount
 
 # If the target bug isn't fixed, getfattr fails
 _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
 
 status=0
 exit
index 1ab1243464cce8504bb716ca9c8ac771cf129ac4..8ccf52f06bd98204e29146403c24118ff623391f 100644 (file)
@@ -1,2 +1,2 @@
 QA output created by 611
 QA output created by 611
-user.a=""
+user.a