From a8d938c4ed93aa03fc87c9173aaee4e26ee67c5b Mon Sep 17 00:00:00 2001 From: Dale Mellor Date: Mon, 20 Apr 2020 11:27:53 +0000 Subject: test: make date tests reliable, i.e. independent of current time Some of the date tests depend both on the particular time of day and year at which the test is run, and also on the state of daylight-savings adjustments. (At the present time on my system there are four failing tests, but YMMV.) This patch puts all the tests to UTC time in the C locale, making the results consistent. *All* items in the test suite should be passing once again. * tests/job-schedule.scm: Fix up the environment before running the tests. --- tests/schedule.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/schedule.sh') diff --git a/tests/schedule.sh b/tests/schedule.sh index d403f1d..9a1836e 100644 --- a/tests/schedule.sh +++ b/tests/schedule.sh @@ -26,6 +26,9 @@ export SOURCE_DATE_EPOCH TZ=UTC0 export TZ +LC_ALL=C +export LC_ALL + # Use current working directory to store mcron files XDG_CONFIG_HOME=`pwd` export XDG_CONFIG_HOME -- cgit v1.2.3