Skip to content

Commit

Permalink
tests: Check uname before gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
Patryk27 authored and Mic92 committed Nov 18, 2024
1 parent 1099f89 commit 4d017f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/short-first-segment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4d017f8

Please sign in to comment.