Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on renaming when engine contains / #391

Open
mgkurtz opened this issue Nov 7, 2024 · 0 comments
Open

Error on renaming when engine contains / #391

mgkurtz opened this issue Nov 7, 2024 · 0 comments

Comments

@mgkurtz
Copy link

mgkurtz commented Nov 7, 2024

I am currently adding some regression tests to pdfjam using l3build. Indeed this works pretty well and needs only those two lines in l3build.lua:

checkengines = {"engine"} -- small wrapper script to use `pdfjam` with `l3build`
pvtext = ".args" -- *.args files contain command line arguments for `pdfjam`

as long as engine lies in my search PATH.

I would like this to work as well, if I put engine in testfiles/support and use checkengines = {"./engine"}. Alas at several places in l3build-check.lua, we compute a file name using "." .. engine which leads to the error

mv: cannot move './build/result/demo.pdf' to './build/result/demo../engine.pdf': No such file or directory

This should be avoidable by always using "." .. basename(engine) instead of "." .. engine.

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

No branches or pull requests

1 participant