]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: check hostname --fqdn sanity before running make check 12297/head
authorNathan Cutler <ncutler@suse.com>
Sat, 3 Dec 2016 22:37:08 +0000 (23:37 +0100)
committerNathan Cutler <ncutler@suse.com>
Sat, 3 Dec 2016 22:37:08 +0000 (23:37 +0100)
Fixes: http://tracker.ceph.com/issues/18134
Signed-off-by: Nathan Cutler <ncutler@suse.com>
run-make-check.sh

index 5bf634cdf8b9f6f1567a62476913be3c8675450b..ed77d672f1998a73c3c58fdb266c732fbbbc0f9e 100755 (executable)
@@ -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)"