From 9ea2daf5e74e3ff03043cfa6fb68033aea0da52a Mon Sep 17 00:00:00 2001 From: David Levine Date: Mon, 6 Feb 2012 22:25:25 -0600 Subject: [PATCH] Some tests failed because they displayed the user's local time zone but expected GMT. So, set TZ in runtest to fool them. Though I wonder if we're failing to correct for local time zone. --- test/runtest | 7 +++++++ test/tests/bad-input/test-header | 6 +++--- test/tests/mhshow/test-qp | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/test/runtest b/test/runtest index 5cfc158..17ea5e6 100755 --- a/test/runtest +++ b/test/runtest @@ -12,6 +12,13 @@ export MH=$MH_TEST_DIR/Mail/.mh_profile export PATH=$MH_TEST_DIR/bin:$PATH export MH_TEST_COMMON=$PWD/common.sh +#### Some tests use mhshow to display headers. It relies on mhl's +#### default mhl.headers, which runs the date through the pretty +#### function. That displays the date with the user's current +#### timezone. All of the tests expect GMT, so fool them into using +#### that. +export TZ=GMT + [ -d $MH_TEST_DIR ] || ./setup-test # clean old test data diff --git a/test/tests/bad-input/test-header b/test/tests/bad-input/test-header index b9e76a1..c61e021 100644 --- a/test/tests/bad-input/test-header +++ b/test/tests/bad-input/test-header @@ -21,7 +21,7 @@ actual=$MH_TEST_DIR/$$.actual msgfile=$(mhpath new) msgnum=$(basename $msgfile) cat > $msgfile < $expected < $expected < $expected <