[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-mcron] tests/schedule.sh issues
From: |
Ludovic Courtès |
Subject: |
[Bug-mcron] tests/schedule.sh issues |
Date: |
Mon, 19 Mar 2018 22:56:39 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello!
There’s a couple of issues with tests/schedule.sh in mcron 1.1:
1. It expects to be running in a UTC+1 timezone. I think that can be
enforced by doing “export TZ=UTC-1”, at least on GNU systems.
2. It relies on non-deterministic behavior. Specifically, the order
in which ‘mcron --schedule’ shows the foo.guile and the bar.guile
jobs relies on the order in which files are traversed by
‘for-each-file’, which is non-deterministic.
The fix would be to write ‘for-each-file’ along these lines:
(define (for-each-file proc directory)
(for-each proc (scandir directory)))
because ‘scandir’ sorts entries.
Apart from these minor issues, thanks a lot for the new release! :-)
Ludo’.
- [Bug-mcron] tests/schedule.sh issues,
Ludovic Courtès <=