File: test.patch

package info (click to toggle)
gocr 0.52-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,860 kB
  • sloc: ansic: 18,197; sh: 545; makefile: 339; xml: 20
file content (21 lines) | stat: -rw-r--r-- 667 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Make bin/gocr_chk.sh easier to use for build time tests and
 autopkgtest.
Author: Andrius Merkys <merkys@debian.org>
Forwarded: not-needed
--- a/bin/gocr_chk.sh
+++ b/bin/gocr_chk.sh
@@ -27,8 +27,7 @@
 sumchars=0      # tested chars
 badchars=0      # bad chars
 dirs=.
-tmpdir=/tmp/tmp_${USER}_gocr # temporary directory
-mkdir -p $tmpdir
+tmpdir=$(mktemp --directory) # temporary directory
 # echo $tmpdir
 numbers=0       # check numbers only? (not implemented)
 if test "$1" = "-n";    then numbers=1; shift; fi
@@ -104,3 +103,4 @@
 else
  echo -e " : $fdate numfiles= $numfiles bad= $numbad  sumchars= $sumchars bad= $badchars  ?"
 fi
+exit $numbad