projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
strict use "" in whatnow2
[mmh]
/
test
/
common.sh
diff --git
a/test/common.sh
b/test/common.sh
index
d195a7c
..
b869d56
100644
(file)
--- a/
test/common.sh
+++ b/
test/common.sh
@@
-52,10
+52,16
@@
require_locale()
test_skip "no suitable locale available"
}
test_skip "no suitable locale available"
}
+# Do a best guess at FQDN
+mh_hostname()
+{
+ hostname -f 2>/dev/null || uname -n
+}
+
# Some stuff for doing silly progress indicators
progress_update()
{
# Some stuff for doing silly progress indicators
progress_update()
{
- test -t 1 || return 0 # supress progress meter if non-interactive
+ test -t 1 || return 0 # suppress progress meter if non-interactive
this="$1"
first="$2"
last="$3"
this="$1"
first="$2"
last="$3"
@@
-69,11
+75,17
@@
progress_update()
progress_done()
{
progress_done()
{
- test -t 1 || return 0 # supress progress meter if non-interactive
+ test -t 1 || return 0 # suppress progress meter if non-interactive
printf "100%%\n"
}
printf "100%%\n"
}
+#### Replace generated Content-ID headers with static value
+replace_contentid()
+{
+ sed "/^Content-ID/s/:.*/: <TESTID>/" "$@"
+}
+
#### Filter that squeezes blank lines, partially emulating GNU cat -s,
#### but sufficient for our purpose.
#### Filter that squeezes blank lines, partially emulating GNU cat -s,
#### but sufficient for our purpose.