clean up log file deletion and add unit test

This commit is contained in:
Brian Gough
2020-05-20 14:12:08 +01:00
parent e3c278e708
commit 1bcb370ca1
2 changed files with 22 additions and 6 deletions

View File

@@ -201,10 +201,6 @@ module.exports = ResourceWriter = {
// knitr cache
should_delete = false
}
if (path.match(/^output.(stdout|stderr)$/)) {
// latexmk output
should_delete = true
}
if (path.match(/^output-.*/)) {
// Tikz cached figures (default case)
should_delete = false
@@ -235,7 +231,9 @@ module.exports = ResourceWriter = {
path === 'output.pdf' ||
path === 'output.dvi' ||
path === 'output.log' ||
path === 'output.xdv'
path === 'output.xdv' ||
path === 'output.stdout' ||
path === 'output.stderr'
) {
should_delete = true
}