From d0b260c272cf2732437c838c80ab380b4bb8d433 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Fri, 17 Aug 2018 17:25:38 -0700 Subject: [PATCH] test: Fix test to use -gt instead of creating an empty file "0" Signed-off-by: David Zafman --- qa/standalone/ceph-helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index e5c8748870da1..e68425cba1952 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 } -- 2.39.5