Skip to content

Use library to generate XML in maketests instead of system()#906

Merged
brucemiller merged 2 commits intobrucemiller:masterfrom
bfirsh:use-library-for-maketests
Dec 19, 2017
Merged

Use library to generate XML in maketests instead of system()#906
brucemiller merged 2 commits intobrucemiller:masterfrom
bfirsh:use-library-for-maketests

Conversation

@bfirsh
Copy link
Copy Markdown
Contributor

@bfirsh bfirsh commented Dec 17, 2017

Oddly, there were two gen_xml methods. The one being used was shelling out to latexml. I am running a development environment where I haven't run make install and everything is in the working directory, so this doesn't work.

The other gen_xml method uses the library, which works with my local development environment. A nice side-effect is this is the same approach used by make test, which seems more resilient somehow.

Also, convertAndWriteFile() was broken, so I've fixed that.

Presumably at some point convertFile returned the DOM node.
Oddly, there were two `gen_xml` methods. The one being used was
shelling out to `latexml`. This doesn't work when working
with a development environment where `latexml` isn't on the path.

The other `gen_xml` method uses the library, which works with
local development environments. A nice side-effect is this is
the same approach used by `make test`, which seems more
resilient somehow.
@brucemiller
Copy link
Copy Markdown
Owner

Yeah, hmm... I added that alternative in the middle of some debugging session; I don't think it was really intended to be permanent. Thanks!

@brucemiller brucemiller merged commit 8633006 into brucemiller:master Dec 19, 2017
@bfirsh bfirsh deleted the use-library-for-maketests branch December 20, 2017 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants