Skip to content

Commit 0c423e1

Browse files
committed
test: test_rados_tools compare output without trimming newline
Fixes: https://tracker.ceph.com/issues/67419 Signed-off-by: Nitzan Mordechai <[email protected]>
1 parent c88b7d3 commit 0c423e1

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)