Package: fail2ban
Followup-For: Bug #855920

Dear Maintainer,

Test failures occur if the build environment does not have the tzdata
package installed.  The test harness hardcodes TZ="Europe/Zurich".

Patch below fixes this by encoding the equyivalent explicit timezone
rather than using the geographic lookup.

Paul

diff -ur clean/fail2ban/tests/utils.py fail2ban-0.9.6/fail2ban/tests/utils.py
--- clean/fail2ban/tests/utils.py       2016-12-09 14:48:45.000000000 +0000
+++ fail2ban-0.9.6/fail2ban/tests/utils.py      2017-04-16 13:41:19.933359352 
+0100
@@ -95,7 +95,7 @@
        # Set the time to a fixed, known value
        # Sun Aug 14 12:00:00 CEST 2005
        # yoh: we need to adjust TZ to match the one used by Cyril so all the 
timestamps match
-       os.environ['TZ'] = 'Europe/Zurich'
+       os.environ['TZ'] = 'CET-01CEST-02,M3.5.0,M10.5.0'
        time.tzset()
        MyTime.setTime(1124013600)
 

Reply via email to