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
|
*.PDF binary
|
||||||
*.png binary
|
*.png binary
|
||||||
*.jpg binary
|
*.jpg binary
|
||||||
|
*.bin binary
|
||||||
|
|
||||||
.git_archival.txt export-subst
|
.git_archival.txt export-subst
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -35,7 +35,6 @@ log/
|
|||||||
/*.qdf
|
/*.qdf
|
||||||
*.ipynb
|
*.ipynb
|
||||||
.ipynb_checkpoints/
|
.ipynb_checkpoints/
|
||||||
tests/cache/
|
|
||||||
tests/output/
|
tests/output/
|
||||||
tests/resources/private/
|
tests/resources/private/
|
||||||
tmp/
|
tmp/
|
||||||
|
|||||||
@ -136,7 +136,8 @@ def main():
|
|||||||
for configfile in args.configfiles:
|
for configfile in args.configfiles:
|
||||||
# cp cache -> output
|
# cp cache -> output
|
||||||
tessfile = args.outputbase + '.' + configfile
|
tessfile = args.outputbase + '.' + configfile
|
||||||
shutil.copy(str(cache_folder / configfile), tessfile)
|
shutil.copy(str(cache_folder / configfile + '.bin'),
|
||||||
|
tessfile)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
# Cache miss
|
# Cache miss
|
||||||
@ -166,7 +167,7 @@ def main():
|
|||||||
continue
|
continue
|
||||||
# cp pwd/{outputbase}.{configfile} -> {cache}/{configfile}
|
# cp pwd/{outputbase}.{configfile} -> {cache}/{configfile}
|
||||||
tessfile = args.outputbase + '.' + 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)
|
(cache_folder / 'stderr').write_bytes(p.stderr)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user