From dcfff6127c9659c06133429afb76ce0bfd6e6bf1 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Sat, 3 Dec 2016 23:37:08 +0100 Subject: [PATCH] tests: check hostname --fqdn sanity before running make check Fixes: http://tracker.ceph.com/issues/18134 Signed-off-by: Nathan Cutler --- run-make-check.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/run-make-check.sh b/run-make-check.sh index 5bf634cdf8b..ed77d672f19 100755 --- a/run-make-check.sh +++ b/run-make-check.sh @@ -60,6 +60,14 @@ function run() { } function main() { + echo -n "Checking hostname sanity... " + if hostname --fqdn >/dev/null 2>&1 ; then + echo "OK" + else + echo "NOT OK" + echo "Please fix 'hostname --fqdn', otherwise 'make check' will fail" + return 1 + fi if run "$@" ; then rm -fr ${CEPH_BUILD_VIRTUALENV:-/tmp}/*virtualenv* echo "cmake check: successful run on $(git rev-parse HEAD)" -- 2.39.5