From: David Zafman Date: Sat, 18 Aug 2018 00:25:38 +0000 (-0700) Subject: test: Fix test to use -gt instead of creating an empty file "0" X-Git-Tag: v12.2.13~18^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=44911432579366a91daa2deb74231d8d3946688b;p=ceph.git test: Fix test to use -gt instead of creating an empty file "0" Signed-off-by: David Zafman (cherry picked from commit d0b260c272cf2732437c838c80ab380b4bb8d433) --- diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index 0c705ec0d37e..472b1a7a8f20 100755 --- a/qa/standalone/ceph-helpers.sh +++ b/qa/standalone/ceph-helpers.sh @@ -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 }