X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=test%2Fcommon.sh;fp=test%2Fcommon.sh;h=1a677335b586eca66a1f9bb2e4768144a0fb9700;hp=805afeafcc8e059c54e702b1a1f1b39dd9f71275;hb=17de69d5b6a8082a86d08f7617718e38c27205e0;hpb=5cb46b33551f28e4168989e752e09bd927e993f9 diff --git a/test/common.sh b/test/common.sh index 805afea..1a67733 100644 --- a/test/common.sh +++ b/test/common.sh @@ -52,6 +52,12 @@ require_locale() 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() {