iotests: Fix nonportable use of od --endian
authorEric Blake <eblake@redhat.com>
Wed, 26 Feb 2020 12:54:24 +0000 (06:54 -0600)
committerMax Reitz <mreitz@redhat.com>
Wed, 11 Mar 2020 11:42:30 +0000 (12:42 +0100)
commit69135eb30b9c3fca583737a96df015174dc8e6dd
tree60886dad4449d69f194e24fddfe7cb552e758bd2
parent69032253c33ae1774233c63cedf36d32242a85fc
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>
tests/qemu-iotests/common.rc