Skip to content

Commit

Permalink
test cache: use .bin extension, fix .gitignore .gitattributes
Browse files Browse the repository at this point in the history
  • Loading branch information
James R. Barlow committed Mar 25, 2018
1 parent 961c136 commit 7747696
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
*.PDF binary
*.png binary
*.jpg binary

*.bin binary

.git_archival.txt export-subst
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ log/
/*.qdf
*.ipynb
.ipynb_checkpoints/
tests/cache/
tests/output/
tests/resources/private/
tmp/
Expand Down
5 changes: 3 additions & 2 deletions tests/spoof/tesseract_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def slugs():
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
Expand Down Expand Up @@ -166,7 +167,7 @@ def slugs():
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)

Expand Down

0 comments on commit 7747696

Please sign in to comment.