mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Sleep until midnight if test starts after 23:55 UTC
All checks were successful
Remind unit tests / tests (push) Successful in 35s
All checks were successful
Remind unit tests / tests (push) Successful in 35s
This commit is contained in:
@@ -41,9 +41,10 @@ RESULT=`(echo 'BANNER %'; echo 'IF now() > 23:55'; echo 'MSG late%'; echo 'ENDIF
|
||||
|
||||
if test "$RESULT" = "late" ; then
|
||||
echo ""
|
||||
echo "*** Please do not run the test suite between 23:55 and 00:00 UTC; it will fail."
|
||||
echo "*** The test suite will fail between 23:55 and 0:00 UTC, so"
|
||||
echo "*** I am going to sleep for a bit. Please be patient..."
|
||||
echo ""
|
||||
exit 1
|
||||
sleep 301
|
||||
fi
|
||||
|
||||
# If we're already in a utf-8 locale, do
|
||||
|
||||
Reference in New Issue
Block a user