]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: avoid bashism 6571/head
authorLoic Dachary <ldachary@redhat.com>
Fri, 13 Nov 2015 17:47:31 +0000 (18:47 +0100)
committerLoic Dachary <ldachary@redhat.com>
Fri, 13 Nov 2015 17:47:31 +0000 (18:47 +0100)
The shell used by the cli tests is not always bash. Not using the
here-word is also more readable in this specific case.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/cli/rbd/help.t

index 14fd23f0d88e807f2f2a5f937e3ec05064b9fc18..6457bded6c4aafee2f07cb907644bbf2251c30aa 100644 (file)
@@ -59,7 +59,7 @@
     -k [ --keyring ] arg  path to keyring
   
   See 'rbd help <command>' for help on a specific command.
-  $ while read -r line; do echo rbd help $line ; rbd help $line; done <<< "$(rbd help | grep '^    [a-z]' | sed 's/^    \([a-z -]*[a-z]\).*/\1/g')"
+  $ rbd help | grep '^    [a-z]' | sed 's/^    \([a-z -]*[a-z]\).*/\1/g' | while read -r line; do echo rbd help $line ; rbd help $line; done
   rbd help bench-write
   usage: rbd bench-write [--pool <pool>] [--image <image>] [--io-size <io-size>] 
                          [--io-threads <io-threads>] [--io-total <io-total>]