mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Do not call tex2lyx in roundtrip mode for tests
This commit is contained in:
parent
dcaab11b09
commit
3d4da7fa61
@ -58,10 +58,12 @@ def main(argv):
|
|||||||
(base, ext) = os.path.splitext(f)
|
(base, ext) = os.path.splitext(f)
|
||||||
texfile = os.path.join(inputdir, f)
|
texfile = os.path.join(inputdir, f)
|
||||||
if overwrite:
|
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)
|
cmd = '%s -roundtrip -f %s' % (tex2lyx, texfile)
|
||||||
else:
|
else:
|
||||||
lyxfile = os.path.join(outputdir, base + ".lyx")
|
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 = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
|
||||||
proc.wait()
|
proc.wait()
|
||||||
err = proc.returncode
|
err = proc.returncode
|
||||||
|
Loading…
Reference in New Issue
Block a user