From: Kornel Benko Date: Thu, 14 May 2015 12:24:17 +0000 (+0200) Subject: Update runtests.py to handle \origin for tex2lyx/cmplyx tests used by cmake. X-Git-Tag: 2.2.0alpha1~846 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fecc4389642418d468e213f22379e1a714c30c50;p=features.git Update runtests.py to handle \origin for tex2lyx/cmplyx tests used by cmake. --- diff --git a/src/tex2lyx/test/runtests.py b/src/tex2lyx/test/runtests.py index 280141c778..fab0f97833 100755 --- a/src/tex2lyx/test/runtests.py +++ b/src/tex2lyx/test/runtests.py @@ -123,6 +123,12 @@ def main(argv): f1 = open(lyxfile1, 'r') f2 = open(lyxfile2, 'r') lines1 = f1.readlines() + i1 = 0 + for linex in lines1: + if linex[:-1] == '\origin ' + inputdir + '/': + lines1[i1] = '\origin ' + outputdir + '/' + "\n" + break + i1 = i1+1 lines2 = f2.readlines() f1.close() f2.close()