X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=test%2Fcommon.sh;h=1a677335b586eca66a1f9bb2e4768144a0fb9700;hp=805afeafcc8e059c54e702b1a1f1b39dd9f71275;hb=1642d62841486ade88ec2c48dd581e3249c98c94;hpb=4112940aea5591648b03a81907408752c08b33aa 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() {