Skip to content

Commit 182d803

Browse files
Merge pull request ceph#59165 from NitzanMordhai/wip-nitzan-test-rados-tools-newline-trim
test: test_rados_tools compare output without trimming newline
2 parents a4ff703 + 0c423e1 commit 182d803

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qa/workunits/rados/test_rados_tool.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,10 @@ test_xattr() {
329329
expect_false $RADOS_TOOL -p $POOL setxattr $OBJ 2>/dev/null
330330
expect_false $RADOS_TOOL -p $POOL setxattr $OBJ foo fooval extraarg 2>/dev/null
331331
$RADOS_TOOL -p $POOL setxattr $OBJ foo fooval
332-
$RADOS_TOOL -p $POOL getxattr $OBJ foo > $V2
332+
$RADOS_TOOL -p $POOL getxattr $OBJ foo > $V2 | tr -d '\n' > $V2
333333
cmp $V1 $V2
334334
cat $V1 | $RADOS_TOOL -p $POOL setxattr $OBJ bar
335-
$RADOS_TOOL -p $POOL getxattr $OBJ bar > $V2
335+
$RADOS_TOOL -p $POOL getxattr $OBJ bar > $V2 | tr -d '\n' > $V2
336336
cmp $V1 $V2
337337
$RADOS_TOOL -p $POOL listxattr $OBJ > $V1
338338
grep -q foo $V1

0 commit comments

Comments
 (0)