From: Jason Dillaman Date: Thu, 24 May 2018 19:54:39 +0000 (-0400) Subject: test/cli-integration/rbd: fixed unit formatting X-Git-Tag: v13.2.0~10^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F22260%2Fhead;p=ceph.git test/cli-integration/rbd: fixed unit formatting Signed-off-by: Jason Dillaman (cherry picked from commit 4aea23cf1b488c0fe57b3cbe910ddcc4cb5360eb) --- diff --git a/src/test/cli-integration/rbd/formatted-output.t b/src/test/cli-integration/rbd/formatted-output.t index 01303cab107e..5d36b1510fc5 100644 --- a/src/test/cli-integration/rbd/formatted-output.t +++ b/src/test/cli-integration/rbd/formatted-output.t @@ -604,15 +604,15 @@ whenever it is run. grep -v to ignore it, but still work on other distros. quuy $ rbd list -l - NAME SIZE PARENT FMT PROT LOCK - foo 1 GiB 1 - foo@snap 1 GiB 1 - quux 1 MiB 1 excl - bar 1 GiB 2 - bar@snap 512 MiB 2 yes - bar@snap2 1 GiB 2 - baz 2 GiB 2 shr - quuy 2 GiB 2 + NAME SIZE PARENT FMT PROT LOCK + foo 1 GiB 1 + foo@snap 1 GiB 1 + quux 1 MiB 1 excl + bar 1 GiB 2 + bar@snap 512 MiB 2 yes + bar@snap2 1 GiB 2 + baz 2 GiB 2 shr + quuy 2 GiB 2 $ rbd list -l --format json | python -mjson.tool | sed 's/,$/, /' [ { @@ -729,11 +729,11 @@ whenever it is run. grep -v to ignore it, but still work on other distros. deep-flatten-child $ rbd list rbd_other -l - NAME SIZE PARENT FMT PROT LOCK - child 512 MiB 2 - child@snap 512 MiB rbd/bar@snap 2 - deep-flatten-child 512 MiB 2 - deep-flatten-child@snap 512 MiB 2 + NAME SIZE PARENT FMT PROT LOCK + child 512 MiB 2 + child@snap 512 MiB rbd/bar@snap 2 + deep-flatten-child 512 MiB 2 + deep-flatten-child@snap 512 MiB 2 $ rbd list rbd_other -l --format json | python -mjson.tool | sed 's/,$/, /' [ { @@ -867,8 +867,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd snap list foo - SNAPID NAME SIZE TIMESTAMP - *snap*1 GiB* (glob) + SNAPID NAME SIZE TIMESTAMP + *snap*1 GiB* (glob) $ rbd snap list foo --format json | python -mjson.tool | sed 's/,$/, /' [ { @@ -888,9 +888,9 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd snap list bar - SNAPID NAME SIZE TIMESTAMP - *snap*512 MiB* (glob) - *snap2*1 GiB* (glob) + SNAPID NAME SIZE TIMESTAMP + *snap*512 MiB* (glob) + *snap2*1 GiB* (glob) $ rbd snap list bar --format json | python -mjson.tool | sed 's/,$/, /' [ { @@ -927,8 +927,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd snap list baz --format xml | xml_pp 2>&1 | grep -v '^new version at /usr/bin/xml_pp' $ rbd snap list rbd_other/child - SNAPID NAME SIZE TIMESTAMP - *snap*512 MiB* (glob) + SNAPID NAME SIZE TIMESTAMP + *snap*512 MiB* (glob) $ rbd snap list rbd_other/child --format json | python -mjson.tool | sed 's/,$/, /' [ { @@ -948,12 +948,12 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd disk-usage --pool rbd_other 2>/dev/null - NAME PROVISIONED USED - child@snap 512 MiB 0 B - child 512 MiB 4 MiB - deep-flatten-child@snap 512 MiB 0 B - deep-flatten-child 512 MiB 0 B - 1 GiB 4 MiB + NAME PROVISIONED USED + child@snap 512 MiB 0 B + child 512 MiB 4 MiB + deep-flatten-child@snap 512 MiB 0 B + deep-flatten-child 512 MiB 0 B + 1 GiB 4 MiB $ rbd disk-usage --pool rbd_other --format json | python -mjson.tool | sed 's/,$/, /' { "images": [