Am Freitag, 4. Januar 2013 um 05:28:11, schrieb Julien Rioux <jri...@lyx.org>
> On 04/01/2013 5:22 AM, Kornel Benko wrote:
> > Am Freitag, 4. Januar 2013 um 03:01:06, schrieb Scott Kostyshak 
> > <skost...@lyx.org>
> >> Output is below. Should author number be ignored when comparing or are
> >> the numbers supposed to be the same? Thanks, Scott
> >
> > I don't know.
> > Here, even with 'lyx2.1' the test passes.
> >
> > Start testing: Jan 04 11:10 CET
> 
> [...]
> 
> 
> > End testing: Jan 04 11:10 CET
> >
> >     Kornel
> >
> 
> The two of you have different time zones. Would that affect the time 
> added/time deleted?

Wow, the difference makes
        1320593979-1320572379=21600=6*3600
so yes.
So to make the test valid, we should set the the timezone first.

I changed the TZ to 'GMT+5', and now I got the same error as Scott.

Is it enough to use
        os.environ['TZ'] = 'GMT-1'
in a python script also for windows?

> -- 
> Julien

        Kornel
diff --git a/src/tex2lyx/test/runtests.py b/src/tex2lyx/test/runtests.py
index 39e91f1..71b9201 100755
--- a/src/tex2lyx/test/runtests.py
+++ b/src/tex2lyx/test/runtests.py
@@ -63,6 +63,8 @@ def main(argv):
              'test-modules.tex', 'box-color-size-space-align.tex', \
              'CJK.tex', 'CJKutf8.tex', 'XeTeX-polyglossia.tex']
 
+    # Set the timezone first, some tests depend on it
+    os.environ['TZ'] = 'GMT-1'
     errors = []
     overwrite = (outputdir == inputdir)
     for f in files:

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to