summaryrefslogtreecommitdiffstats
path: root/tests/ts/utmpdump/ipv6totxt
diff options
context:
space:
mode:
authorRuediger Meier2014-03-15 03:30:36 +0100
committerRuediger Meier2014-03-15 06:04:31 +0100
commitc52dbd6cde3d9cb376be40e9cb3f9702bb1aa8fb (patch)
tree3815d6134cd20700b901e346a64874428e30ecc2 /tests/ts/utmpdump/ipv6totxt
parenttests: fix utmpdump/to-text for bigendian (diff)
downloadkernel-qcow2-util-linux-c52dbd6cde3d9cb376be40e9cb3f9702bb1aa8fb.tar.gz
kernel-qcow2-util-linux-c52dbd6cde3d9cb376be40e9cb3f9702bb1aa8fb.tar.xz
kernel-qcow2-util-linux-c52dbd6cde3d9cb376be40e9cb3f9702bb1aa8fb.zip
tests: fix utmpdump/ipv6totxt for bigendian
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/utmpdump/ipv6totxt')
-rwxr-xr-xtests/ts/utmpdump/ipv6totxt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ts/utmpdump/ipv6totxt b/tests/ts/utmpdump/ipv6totxt
index b9da8abd7..e329b1318 100755
--- a/tests/ts/utmpdump/ipv6totxt
+++ b/tests/ts/utmpdump/ipv6totxt
@@ -20,8 +20,10 @@ 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 $TS_SELF/ipv6bin >| $TS_OUTPUT 2>/dev/null
+$TS_CMD_UTMPDUMP $TS_SELF/ipv6bin.$BYTE_ORDER >| $TS_OUTPUT 2>/dev/null
ts_finalize