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 committed Jun 7, 2024
1 parent 527926d commit 4442b76
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 4442b76

Please sign in to comment.