From aae7c98aaae5922903b3c958876e13ebee1c4b41 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 11 Apr 2024 16:28:52 +0200 Subject: [PATCH] tests: fallback to normal hostname on older machines hostname -I is newer option, add some fallback --- test/lib/inittest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/inittest.sh b/test/lib/inittest.sh index c88c43ab9..920cfae27 100644 --- a/test/lib/inittest.sh +++ b/test/lib/inittest.sh @@ -176,7 +176,7 @@ echo "@PREFIX=$PREFIX" echo "## DATE: $(date || true)" # Hostname IP address -echo "## HOST: $(hostname -I || true)" +echo "## HOST: $(hostname -I 2>/dev/null || hostname 2>/dev/null || true)" if test -z "$SKIP_ROOT_DM_CHECK" ; then aux lvmconf -- 2.43.5