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.
This commit is contained in:
parent
bd37306294
commit
a8d938c4ed
2 changed files with 17 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue