]> git.ipfire.org Git - thirdparty/qemu.git/commit
iotests: Fix nonportable use of od --endian
authorEric Blake <eblake@redhat.com>
Wed, 26 Feb 2020 12:54:24 +0000 (06:54 -0600)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 22 Jun 2020 17:51:50 +0000 (12:51 -0500)
commitc6decabc4a30b841e031a838206286db6ad343bc
treeed3ff58037aef249eb70b4a5c797a25f5e023a54
parent580c08b326c1b24f3ad3d1ab0b04fae16807af18
iotests: Fix nonportable use of od --endian

Tests 261 and 272 fail on RHEL 7 with coreutils 8.22, since od
--endian was not added until coreutils 8.23.  Fix this by manually
constructing the final value one byte at a time.

Fixes: fc8ba423
Reported-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200226125424.481840-1-eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
(cherry picked from commit 69135eb30b9c3fca583737a96df015174dc8e6dd)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tests/qemu-iotests/common.rc