mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-11-03 11:20:47 +00:00
test cache: use .bin extension, fix .gitignore .gitattributes
This commit is contained in:
parent
961c1365f9
commit
77476965ae
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -8,6 +8,6 @@
|
||||
*.PDF binary
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
|
||||
*.bin binary
|
||||
|
||||
.git_archival.txt export-subst
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -35,7 +35,6 @@ log/
|
||||
/*.qdf
|
||||
*.ipynb
|
||||
.ipynb_checkpoints/
|
||||
tests/cache/
|
||||
tests/output/
|
||||
tests/resources/private/
|
||||
tmp/
|
||||
|
||||
@ -136,7 +136,8 @@ def main():
|
||||
for configfile in args.configfiles:
|
||||
# cp cache -> output
|
||||
tessfile = args.outputbase + '.' + configfile
|
||||
shutil.copy(str(cache_folder / configfile), tessfile)
|
||||
shutil.copy(str(cache_folder / configfile + '.bin'),
|
||||
tessfile)
|
||||
sys.exit(0)
|
||||
|
||||
# Cache miss
|
||||
@ -166,7 +167,7 @@ def main():
|
||||
continue
|
||||
# cp pwd/{outputbase}.{configfile} -> {cache}/{configfile}
|
||||
tessfile = args.outputbase + '.' + configfile
|
||||
shutil.copy(tessfile, str(cache_folder / configfile))
|
||||
shutil.copy(tessfile, str(cache_folder / configfile + '.bin'))
|
||||
|
||||
(cache_folder / 'stderr').write_bytes(p.stderr)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user