summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKarel Zak2013-03-04 13:10:09 +0100
committerKarel Zak2013-03-04 13:10:09 +0100
commit02658d9bb56976b462724b306e9e1f4385ef4b93 (patch)
tree6dabf30f306bf89f81c52fa8a18d545ae7063f1c /tests
parentionice: keep output backwardly compatible (diff)
downloadkernel-qcow2-util-linux-02658d9bb56976b462724b306e9e1f4385ef4b93.tar.gz
kernel-qcow2-util-linux-02658d9bb56976b462724b306e9e1f4385ef4b93.tar.xz
kernel-qcow2-util-linux-02658d9bb56976b462724b306e9e1f4385ef4b93.zip
tests: make utmpdump TZ independent
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ts/utmpdump/to-binary2
-rwxr-xr-xtests/ts/utmpdump/to-text2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/ts/utmpdump/to-binary b/tests/ts/utmpdump/to-binary
index 25acbf662..f2ec324ce 100755
--- a/tests/ts/utmpdump/to-binary
+++ b/tests/ts/utmpdump/to-binary
@@ -18,6 +18,8 @@ TS_DESC="to-binary"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+export LANG=C
+export TZ=GMT
$TS_CMD_UTMPDUMP -r $TS_SELF/text >| $TS_OUTPUT 2>/dev/null
ts_finalize
diff --git a/tests/ts/utmpdump/to-text b/tests/ts/utmpdump/to-text
index f454e5fd8..220f4d0a5 100755
--- a/tests/ts/utmpdump/to-text
+++ b/tests/ts/utmpdump/to-text
@@ -18,6 +18,8 @@ TS_DESC="to-text"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+export LANG=C
+export TZ=GMT
$TS_CMD_UTMPDUMP $TS_SELF/binary >| $TS_OUTPUT 2>/dev/null
ts_finalize