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: v14.0.1~553^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d0b260c272cf2732437c838c80ab380b4bb8d433;p=ceph.git test: Fix test to use -gt instead of creating an empty file "0" Signed-off-by: David Zafman --- diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index e5c8748870da..e68425cba195 100755 --- a/qa/standalone/ceph-helpers.sh +++ b/qa/standalone/ceph-helpers.sh @@ -1928,7 +1928,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 }