]> git.lyx.org Git - features.git/commitdiff
Do not call tex2lyx in roundtrip mode for tests
authorGeorg Baum <baum@lyx.org>
Sat, 15 Dec 2012 16:47:09 +0000 (17:47 +0100)
committerGeorg Baum <baum@lyx.org>
Sat, 15 Dec 2012 16:47:09 +0000 (17:47 +0100)
src/tex2lyx/test/runtests.py

index 358aa4ecc52180634d7d4203c4c433ff49e3b6b8..406a96e22e3e65936118f53e94f37a99da4680b1 100755 (executable)
@@ -58,10 +58,12 @@ def main(argv):
         (base, ext) = os.path.splitext(f)
         texfile = os.path.join(inputdir, f)
         if overwrite:
+            # we are updating the test references, so use roundtrip to allow
+            # for checking the LyX export as well.
             cmd = '%s -roundtrip -f %s' % (tex2lyx, texfile)
         else:
             lyxfile = os.path.join(outputdir, base + ".lyx")
-            cmd = '%s -roundtrip -copyfiles -f %s %s' % (tex2lyx, texfile, lyxfile)
+            cmd = '%s -copyfiles -f %s %s' % (tex2lyx, texfile, lyxfile)
         proc = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
         proc.wait()
         err = proc.returncode