From: Jason Dillaman Date: Wed, 13 May 2015 14:39:33 +0000 (-0400) Subject: qa/workunits/rados/test_rados_tool: added test for omapsetval via stdin X-Git-Tag: v9.0.2~167^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4668%2Fhead;p=ceph.git qa/workunits/rados/test_rados_tool: added test for omapsetval via stdin Signed-off-by: Jason Dillaman --- diff --git a/qa/workunits/rados/test_rados_tool.sh b/qa/workunits/rados/test_rados_tool.sh index 3416cc93f04f..47ea72b2d71f 100755 --- a/qa/workunits/rados/test_rados_tool.sh +++ b/qa/workunits/rados/test_rados_tool.sh @@ -17,7 +17,11 @@ test_omap() { cleanup for i in $(seq 1 1 600) do - rados -p $POOL setomapval $OBJ $i $i + if [ $(($i % 2)) -eq 0 ]; then + rados -p $POOL setomapval $OBJ $i $i + else + echo -n "$i" | rados -p $POOL setomapval $OBJ $i + fi rados -p $POOL getomapval $OBJ $i | grep -q "\\: $i\$" done rados -p $POOL listomapvals $OBJ | grep -c value | grep 600