Skip to content

Commit

Permalink
Merge pull request #12297 from SUSE/wip-18134
Browse files Browse the repository at this point in the history
tests: check hostname --fqdn sanity before running make check

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed Dec 4, 2016
2 parents 177bae7 + dcfff61 commit d73be20
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions run-make-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit d73be20

Please sign in to comment.