From 4442b768aa0c90ab6875f549c35ad42068c44d65 Mon Sep 17 00:00:00 2001 From: Patryk Wychowaniec Date: Fri, 7 Jun 2024 11:47:27 +0200 Subject: [PATCH] tests: Check uname before gzip --- tests/short-first-segment.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/short-first-segment.sh b/tests/short-first-segment.sh index ea0e3310..1e33dceb 100755 --- a/tests/short-first-segment.sh +++ b/tests/short-first-segment.sh @@ -6,13 +6,13 @@ READELF=${READELF:-readelf} EXEC_NAME="short-first-segment" -if ! gzip --version >/dev/null; then - echo "skipping test: gzip not found" +if test "$(uname -i)" != x86_64 || test "$(uname)" != Linux; then + echo "skipping test: supported only on x86_64 Linux" exit 77 fi -if test "$(uname -i)" != x86_64 || test "$(uname)" != Linux; then - echo "skipping test: supported only on x86_64 Linux" +if ! gzip --version >/dev/null; then + echo "skipping test: gzip not found" exit 77 fi