Skip to contentSkip to conversation

qemu-iotests: send 'rbd rm ...' stderr to /dev/null

PATCH In review Sage Weil 2 participants 2 messages Apr 16, 2013 – Apr 17, 2013

lore
Share & tools
lore

Sage Weil

author
#0 lore raw

PATCH 1/1 qemu-iotests: send 'rbd rm ...' stderr to /dev/null

The rbd cli tool now sends progress info to stderr; send that to the bit bucket too.

---
 tests/qemu-iotests/common.rc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/common.rc +1 -1
index a536bf7..d7b0ad1 100644
@@ -152,7 +152,7 @@ _cleanup_test_img()
             ;;
 
         rbd)
-            rbd rm $TEST_DIR/t.$IMGFMT > /dev/null
+            rbd rm $TEST_DIR/t.$IMGFMT > /dev/null 2> /dev/null
             ;;
 
         sheepdog)
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 7 lines · Sage Weil

The rbd cli tool now sends progress info to stderr; send that to the bit bucket too.

---
 tests/qemu-iotests/common.rc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Can you add a --quiet or --no-progress option to the rbd cli?

The QEMU patch is simple and could be applied, but rbd cli's approach prevents users from receiving legitimate error messages when they don't want verbose progress output. IMO that should be fixed instead.

Stefan