]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Fix incorrect syntax in check for subread all feature
authorDavid Zafman <dzafman@redhat.com>
Thu, 30 Jul 2015 00:02:50 +0000 (17:02 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 27 Aug 2015 21:03:22 +0000 (14:03 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/test/erasure-code/test-erasure-eio.sh

index 3c93338bbd7e53d84c89ec4a5e4c0c155f6f2753..aadc54477a687997cfb6e17f7c3bbfdbc054d551 100755 (executable)
@@ -44,7 +44,7 @@ function setup_osds() {
 
     for id in $(seq 0 3) ; do
         # TODO: the feature of "osd-pool-erasure-code-subread-all" is not yet supported.
-        if -n osd_pool_erasure_code_subread_all__is_supported; then
+        if [ -n "$osd_pool_erasure_code_subread_all__is_supported" ]; then
             run_osd $dir $id "--osd-pool-erasure-code-subread-all=$subread" || return 1
         else
             run_osd $dir $id || return 1