From f736b8750e077fbb80f6eeec7d2adcb6cbdfebba Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Sat, 26 Dec 2020 19:29:58 +0000 Subject: [PATCH] ci: Alpine's busybox based free does not understand -h Signed-off-by: Adrian Reber --- scripts/ci/run-ci-tests.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/ci/run-ci-tests.sh b/scripts/ci/run-ci-tests.sh index 29711d3c3..9b07fd966 100755 --- a/scripts/ci/run-ci-tests.sh +++ b/scripts/ci/run-ci-tests.sh @@ -118,7 +118,12 @@ print_env() { print_header "ulimit -a" ulimit -a print_header "Available memory" - free -h + if [ -e /etc/alpine-release ]; then + # Alpine's busybox based free does not understand -h + free + else + free -h + fi print_header "Available CPUs" lscpu || : }