]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rados/test_rados_tool: added test for omapsetval via stdin 4668/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 13 May 2015 14:39:33 +0000 (10:39 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 13 May 2015 14:39:33 +0000 (10:39 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
qa/workunits/rados/test_rados_tool.sh

index 3416cc93f04f4bb7aa4cc9ae9036a990c12db363..47ea72b2d71f2131f80d4be9b21dde41a40be70f 100755 (executable)
@@ -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