Skip to content

Commit 1ded839

Browse files
klemensnMic92
authored andcommitted
tests/short-first-segment: fix uname(1) usage and skip message
Replace non-portable GNU `-i, --hardware-platform` with `-m[, --machine]` to fix "unknown error" usage error on, e.g. OpenBSD. Also fix the check's backwards logic. OpenBSD/spar64 now prints -skipping test: not supported on x86_64 Linux +skipping test: amd64 Linux required
1 parent 27e4d7a commit 1ded839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/short-first-segment.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ if ! gzip --version >/dev/null; then
1111
exit 77
1212
fi
1313

14-
if test "$(uname -i)" != x86_64 || test "$(uname)" != Linux; then
15-
echo "skipping test: not supported on x86_64 Linux"
14+
if test "$(uname -m)" != amd64 || test "$(uname)" != Linux; then
15+
echo "skipping test: amd64 Linux required"
1616
exit 77
1717
fi
1818

0 commit comments

Comments
 (0)