Skip to content

Commit b534681

Browse files
Patryk27Mic92
authored andcommitted
tests: Check uname before gzip
1 parent 94c4882 commit b534681

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/short-first-segment.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ READELF=${READELF:-readelf}
66

77
EXEC_NAME="short-first-segment"
88

9-
if ! gzip --version >/dev/null; then
10-
echo "skipping test: gzip not found"
9+
if test "$(uname -m)" != amd64 || test "$(uname)" != Linux; then
10+
echo "skipping test: amd64 Linux required"
1111
exit 77
1212
fi
1313

14-
if test "$(uname -m)" != amd64 || test "$(uname)" != Linux; then
15-
echo "skipping test: amd64 Linux required"
14+
if ! gzip --version >/dev/null; then
15+
echo "skipping test: gzip not found"
1616
exit 77
1717
fi
1818

0 commit comments

Comments
 (0)