]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Fix test to use -gt instead of creating an empty file "0"
authorDavid Zafman <dzafman@redhat.com>
Sat, 18 Aug 2018 00:25:38 +0000 (17:25 -0700)
committerDavid Zafman <dzafman@redhat.com>
Wed, 4 Dec 2019 19:27:39 +0000 (11:27 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit d0b260c272cf2732437c838c80ab380b4bb8d433)

qa/standalone/ceph-helpers.sh

index 0c705ec0d37ecb510354b26e37adcd438dee4896..472b1a7a8f2052b4ea6fb9673bbcf296a6466f61 100755 (executable)
@@ -1888,7 +1888,7 @@ function test_flush_pg_stats()
     local jq_filter='.pools | .[] | select(.name == "rbd") | .stats'
     raw_bytes_used=`ceph df detail --format=json | jq "$jq_filter.raw_bytes_used"`
     bytes_used=`ceph df detail --format=json | jq "$jq_filter.bytes_used"`
-    test $raw_bytes_used > 0 || return 1
+    test $raw_bytes_used -gt 0 || return 1
     test $raw_bytes_used == $bytes_used || return 1
     teardown $dir
 }