From 77a3bc65d78466bb150a9fdaae45ab16f99a155a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Wed, 28 Aug 2019 12:59:49 +0200 Subject: [PATCH] fix 5.28 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- tests/5_container_runtime.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/5_container_runtime.sh b/tests/5_container_runtime.sh index fcaa326..343563c 100644 --- a/tests/5_container_runtime.sh +++ b/tests/5_container_runtime.sh @@ -1112,9 +1112,9 @@ check_5_28() { fail=0 nopids_limit_containers="" for c in $containers; do - pidslimit=$(docker inspect --format '{{.HostConfig.PidsLimit }}' "$c") + pidslimit="$(docker inspect --format '{{.HostConfig.PidsLimit }}' "$c")" - if [ "$pidslimit" -le 0 ]; then + if [ "$pidslimit" = "0" ] || [ "$pidslimit" = "" ] || [ "$pidslimit" = "-1" ]; then # If it's the first container, fail the test if [ $fail -eq 0 ]; then warn "$check_5_28"