Skip to content

Commit 4442b76

Browse files
committed
tests: Check uname before gzip
1 parent 527926d commit 4442b76

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 -i)" != x86_64 || test "$(uname)" != Linux; then
10+
echo "skipping test: supported only on x86_64 Linux"
1111
exit 77
1212
fi
1313

14-
if test "$(uname -i)" != x86_64 || test "$(uname)" != Linux; then
15-
echo "skipping test: supported only on x86_64 Linux"
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)