diff options
author | Ruediger Meier | 2014-03-15 05:59:25 +0100 |
---|---|---|
committer | Ruediger Meier | 2014-03-15 06:04:37 +0100 |
commit | aa8a1f5197cbe8cdf487f8d1e1c30690b52c4490 (patch) | |
tree | a2d2b6573e2fb2a71a754c64105026955fafedc0 /tests/ts | |
parent | tests: fix utmpdump/to-binary for bigendian (diff) | |
download | kernel-qcow2-util-linux-aa8a1f5197cbe8cdf487f8d1e1c30690b52c4490.tar.gz kernel-qcow2-util-linux-aa8a1f5197cbe8cdf487f8d1e1c30690b52c4490.tar.xz kernel-qcow2-util-linux-aa8a1f5197cbe8cdf487f8d1e1c30690b52c4490.zip |
tests: fix utmpdump/ipv6tobin for bigendian
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts')
-rwxr-xr-x | tests/ts/utmpdump/ipv6tobin | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/ts/utmpdump/ipv6tobin b/tests/ts/utmpdump/ipv6tobin index fac6fb9a4..c7b354a0c 100755 --- a/tests/ts/utmpdump/ipv6tobin +++ b/tests/ts/utmpdump/ipv6tobin @@ -20,8 +20,14 @@ ts_init "$*" ts_check_test_command "$TS_CMD_UTMPDUMP" +BYTE_ORDER=$($TS_HELPER_SYSINFO byte-order) + export LANG=C export TZ=GMT -$TS_CMD_UTMPDUMP -r $TS_SELF/ipv6txt >| $TS_OUTPUT 2>/dev/null +OUTFILE=${TS_OUTDIR}/${TS_TESTNAME}.file +$TS_CMD_UTMPDUMP -r $TS_SELF/ipv6txt >| $OUTFILE 2>/dev/null +if diff -q $TS_SELF/ipv6bin.$BYTE_ORDER $OUTFILE; then + echo "no diff" +fi > $TS_OUTPUT 2>&1 ts_finalize |