projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dfc2b7
)
tests: Supress progress meter if non-interactive.
author
markus schnalke
<meillo@marmaro.de>
Fri, 28 Nov 2014 10:46:33 +0000
(11:46 +0100)
committer
markus schnalke
<meillo@marmaro.de>
Fri, 28 Nov 2014 10:46:33 +0000
(11:46 +0100)
test/common.sh
patch
|
blob
|
history
diff --git
a/test/common.sh
b/test/common.sh
index
7f09867
..
0fd3afb
100644
(file)
--- a/
test/common.sh
+++ b/
test/common.sh
@@
-37,6
+37,7
@@
require_prog()
# Some stuff for doing silly progress indicators
progress_update()
{
+ test -t 1 || return 0 # supress progress meter if non-interactive
THIS="$1"
FIRST="$2"
LAST="$3"
@@
-50,5
+51,6
@@
progress_update()
progress_done()
{
+ test -t 1 || return 0 # supress progress meter if non-interactive
printf "100%%\n"
}