From 35ae9acc322a272c9d02d5610822c7455721e730 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 17 May 2018 11:12:44 -0500 Subject: [PATCH] test/cli-integration/rbd: update unit formatting Signed-off-by: Sage Weil --- .../cli-integration/rbd/formatted-output.t | 88 +++++++++---------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/src/test/cli-integration/rbd/formatted-output.t b/src/test/cli-integration/rbd/formatted-output.t index 9c50d2d34fb7c..64714f7883d83 100644 --- a/src/test/cli-integration/rbd/formatted-output.t +++ b/src/test/cli-integration/rbd/formatted-output.t @@ -56,8 +56,8 @@ TODO: figure out why .* does not match the block_name_prefix line in rbd info. For now, use a more inclusive regex. $ rbd info foo rbd image 'foo': - \tsize 1GiB in 256 objects (esc) - \torder 22 (4MiB objects) (esc) + \tsize 1 GiB in 256 objects (esc) + \torder 22 (4 MiB objects) (esc) \tsnapshot_count: 1 (esc) [^^]+ (re) \tformat: 1 (esc) @@ -89,8 +89,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd info foo@snap rbd image 'foo': - \tsize 1GiB in 256 objects (esc) - \torder 22 (4MiB objects) (esc) + \tsize 1 GiB in 256 objects (esc) + \torder 22 (4 MiB objects) (esc) \tsnapshot_count: 1 (esc) [^^]+ (re) \tformat: 1 (esc) @@ -123,8 +123,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd info bar rbd image 'bar': - \tsize 1GiB in 256 objects (esc) - \torder 22 (4MiB objects) (esc) + \tsize 1 GiB in 256 objects (esc) + \torder 22 (4 MiB objects) (esc) \tsnapshot_count: 2 (esc) \tid:* (glob) [^^]+ (re) @@ -179,8 +179,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd info bar@snap rbd image 'bar': - \tsize 512MiB in 128 objects (esc) - \torder 22 (4MiB objects) (esc) + \tsize 512 MiB in 128 objects (esc) + \torder 22 (4 MiB objects) (esc) \tsnapshot_count: 2 (esc) \tid:* (glob) [^^]+ (re) @@ -238,8 +238,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd info bar@snap2 rbd image 'bar': - \tsize 1GiB in 256 objects (esc) - \torder 22 (4MiB objects) (esc) + \tsize 1 GiB in 256 objects (esc) + \torder 22 (4 MiB objects) (esc) \tsnapshot_count: 2 (esc) \tid:* (glob) [^^]+ (re) @@ -297,8 +297,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd info baz rbd image 'baz': - \tsize 2GiB in 512 objects (esc) - \torder 22 (4MiB objects) (esc) + \tsize 2 GiB in 512 objects (esc) + \torder 22 (4 MiB objects) (esc) \tsnapshot_count: 0 (esc) \tid:* (glob) [^^]+ (re) @@ -345,8 +345,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd info quux rbd image 'quux': - \tsize 1MiB in 1 objects (esc) - \torder 22 (4MiB objects) (esc) + \tsize 1 MiB in 1 objects (esc) + \torder 22 (4 MiB objects) (esc) \tsnapshot_count: 0 (esc) [^^]+ (re) \tformat: 1 (esc) @@ -376,8 +376,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd info rbd_other/child rbd image 'child': - \tsize 512MiB in 128 objects (esc) - \torder 22 (4MiB objects) (esc) + \tsize 512 MiB in 128 objects (esc) + \torder 22 (4 MiB objects) (esc) \tsnapshot_count: 1 (esc) \tid:* (glob) [^^]+ (re) @@ -430,8 +430,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd info rbd_other/child@snap rbd image 'child': - \tsize 512MiB in 128 objects (esc) - \torder 22 (4MiB objects) (esc) + \tsize 512 MiB in 128 objects (esc) + \torder 22 (4 MiB objects) (esc) \tsnapshot_count: 1 (esc) \tid:* (glob) [^^]+ (re) @@ -442,7 +442,7 @@ whenever it is run. grep -v to ignore it, but still work on other distros. \tcreate_timestamp:* (glob) \tprotected: False (esc) \tparent: rbd/bar@snap (esc) - \toverlap: 512MiB (esc) + \toverlap: 512 MiB (esc) $ rbd info rbd_other/child@snap --format json | python -mjson.tool | sed 's/,$/, /' { "block_name_prefix": "rbd_data.*", (glob) @@ -501,8 +501,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd info rbd_other/deep-flatten-child rbd image 'deep-flatten-child': - \tsize 512MiB in 128 objects (esc) - \torder 22 (4MiB objects) (esc) + \tsize 512 MiB in 128 objects (esc) + \torder 22 (4 MiB objects) (esc) \tsnapshot_count: 1 (esc) \tid:* (glob) [^^]+ (re) @@ -557,8 +557,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd info rbd_other/deep-flatten-child@snap rbd image 'deep-flatten-child': - \tsize 512MiB in 128 objects (esc) - \torder 22 (4MiB objects) (esc) + \tsize 512 MiB in 128 objects (esc) + \torder 22 (4 MiB objects) (esc) \tsnapshot_count: 1 (esc) \tid:* (glob) [^^]+ (re) @@ -638,14 +638,14 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd list -l NAME SIZE PARENT FMT PROT LOCK - foo 1GiB 1 - foo@snap 1GiB 1 - quux 1MiB 1 excl - bar 1GiB 2 - bar@snap 512MiB 2 yes - bar@snap2 1GiB 2 - baz 2GiB 2 shr - quuy 2GiB 2 + 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/,$/, /' [ { @@ -763,10 +763,10 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd list rbd_other -l NAME SIZE PARENT FMT PROT LOCK - child 512MiB 2 - child@snap 512MiB rbd/bar@snap 2 - deep-flatten-child 512MiB 2 - deep-flatten-child@snap 512MiB 2 + 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/,$/, /' [ { @@ -901,7 +901,7 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd snap list foo SNAPID NAME SIZE TIMESTAMP - *snap*1GiB* (glob) + *snap*1 GiB* (glob) $ rbd snap list foo --format json | python -mjson.tool | sed 's/,$/, /' [ { @@ -922,8 +922,8 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd snap list bar SNAPID NAME SIZE TIMESTAMP - *snap*512MiB* (glob) - *snap2*1GiB* (glob) + *snap*512 MiB* (glob) + *snap2*1 GiB* (glob) $ rbd snap list bar --format json | python -mjson.tool | sed 's/,$/, /' [ { @@ -961,7 +961,7 @@ whenever it is run. grep -v to ignore it, but still work on other distros. $ rbd snap list rbd_other/child SNAPID NAME SIZE TIMESTAMP - *snap*512MiB* (glob) + *snap*512 MiB* (glob) $ rbd snap list rbd_other/child --format json | python -mjson.tool | sed 's/,$/, /' [ { @@ -982,11 +982,11 @@ 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 512MiB 0B - child 512MiB 4MiB - deep-flatten-child@snap 512MiB 0B - deep-flatten-child 512MiB 0B - 1GiB 4MiB + 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": [ -- 2.39.5