From 0c423e1d81afa2b1c692946186ce7de5bf5c6d03 Mon Sep 17 00:00:00 2001 From: Nitzan Mordechai Date: Mon, 12 Aug 2024 11:28:38 +0000 Subject: [PATCH] test: test_rados_tools compare output without trimming newline Fixes: https://tracker.ceph.com/issues/67419 Signed-off-by: Nitzan Mordechai --- qa/workunits/rados/test_rados_tool.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/workunits/rados/test_rados_tool.sh b/qa/workunits/rados/test_rados_tool.sh index b822aa2b8237..9febc4a45248 100755 --- a/qa/workunits/rados/test_rados_tool.sh +++ b/qa/workunits/rados/test_rados_tool.sh @@ -329,10 +329,10 @@ test_xattr() { expect_false $RADOS_TOOL -p $POOL setxattr $OBJ 2>/dev/null expect_false $RADOS_TOOL -p $POOL setxattr $OBJ foo fooval extraarg 2>/dev/null $RADOS_TOOL -p $POOL setxattr $OBJ foo fooval - $RADOS_TOOL -p $POOL getxattr $OBJ foo > $V2 + $RADOS_TOOL -p $POOL getxattr $OBJ foo > $V2 | tr -d '\n' > $V2 cmp $V1 $V2 cat $V1 | $RADOS_TOOL -p $POOL setxattr $OBJ bar - $RADOS_TOOL -p $POOL getxattr $OBJ bar > $V2 + $RADOS_TOOL -p $POOL getxattr $OBJ bar > $V2 | tr -d '\n' > $V2 cmp $V1 $V2 $RADOS_TOOL -p $POOL listxattr $OBJ > $V1 grep -q foo $V1 -- 2.47.3