about summary refs log tree commit diff
path: root/test/pbmclean.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pbmclean.test')
-rwxr-xr-xtest/pbmclean.test10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/pbmclean.test b/test/pbmclean.test
index 28242d30..5f324c5e 100755
--- a/test/pbmclean.test
+++ b/test/pbmclean.test
@@ -8,15 +8,17 @@
   alias pnmmargin="${PBM_BINPREFIX}pnmmargin"
   shopt -s expand_aliases
 
-pbmmake -g 3 3 | pnmmargin -black 2 \
- >${tmpdir}/test.pbm
+tmpdir=${tmpdir:-/tmp}
+test_pbm=${tmpdir}/test.pbm
+
+pbmmake -g 3 3 | pnmmargin -black 2 > ${test_pbm}
 
 for n in 1 2 3 4 5 6 7 8
 do
-pbmclean -min=$n -black -plain ${tmpdir}/test.pbm
+pbmclean -min=$n -black -plain ${test_pbm}
 done
 
-rm ${tmpdir}/test.pbm
+rm ${test_pbm}
 
 # Should print 760076056 4210813
 pbmpage 1 | pbmclean -black | cksum