]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: fix unit formatting tests
authorJason Dillaman <dillaman@redhat.com>
Thu, 24 May 2018 19:53:07 +0000 (15:53 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 24 May 2018 19:54:31 +0000 (15:54 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
qa/workunits/rbd/cli_generic.sh
qa/workunits/rbd/import_export.sh

index 13252d275e6ec1a0b559c41f5b2513827d7aad45..b1c54db4e58b4efff6d8066ccb6800d81dcecd3a 100755 (executable)
@@ -572,7 +572,7 @@ test_thick_provision() {
     ret=""
     while [ $count -lt 10 ]
     do
-        rbd du|grep test1|tr -s " "|cut -d " " -f 3|grep '^64 MiB' && ret=$?
+        rbd du|grep test1|tr -s " "|cut -d " " -f 4-5|grep '^64 MiB' && ret=$?
         if [ "$ret" = "0" ]
         then
             break;
@@ -594,7 +594,7 @@ test_thick_provision() {
     ret=""
     while [ $count -lt 10 ]
     do
-        rbd du|grep test1|tr -s " "|cut -d " " -f 3|grep '^4 GiB' && ret=$?
+        rbd du|grep test1|tr -s " "|cut -d " " -f 4-5|grep '^4 GiB' && ret=$?
         if [ "$ret" = "0" ]
         then
             break;
index 562f5576f84ad04f7e1ad611713ce452f5eb9fc7..89e8d35cfa1a0cb7c22ea190600174ab2da89548 100755 (executable)
@@ -139,7 +139,7 @@ if rbd help export | grep -q export-format; then
     rbd import --stripe-count 1000 --stripe-unit 4096 ${TMPDIR}/img testimg
     rbd export --export-format 2 testimg ${TMPDIR}/img_v2
     rbd import --export-format 2 ${TMPDIR}/img_v2 testimg_import
-    rbd info testimg_import|grep "stripe unit"|awk '{print $3}'|grep -Ei '(4 KiB|4096)'
+    rbd info testimg_import|grep "stripe unit"|grep -Ei '(4 KiB|4096)'
     rbd info testimg_import|grep "stripe count"|awk '{print $3}'|grep 1000
 
     rm ${TMPDIR}/img_v2