]> 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:06 +0000 (11:27 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit d0b260c272cf2732437c838c80ab380b4bb8d433)

qa/standalone/ceph-helpers.sh

index 8def1c0bf011d2a7b3b71670031120092652a4d9..7e841c9a0e0316f4a85f6c7c160314b32c396f98 100755 (executable)
@@ -1887,7 +1887,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
 }