2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

ci: Alpine's busybox based free does not understand -h

Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
Adrian Reber
2020-12-26 19:29:58 +00:00
committed by Andrei Vagin
parent d2ed60b60a
commit f736b8750e

View File

@@ -118,7 +118,12 @@ print_env() {
print_header "ulimit -a" print_header "ulimit -a"
ulimit -a ulimit -a
print_header "Available memory" 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" print_header "Available CPUs"
lscpu || : lscpu || :
} }