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: v13.2.9~112^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2ab8bc5679669afb0c62bfe0d636877650ae7086;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 8def1c0bf01..7e841c9a0e0 100755 --- a/qa/standalone/ceph-helpers.sh +++ b/qa/standalone/ceph-helpers.sh @@ -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 }