Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jewel: build/ops: add hostname sanity check to run-{c}make-check.sh #12302

Merged
2 commits merged into from Feb 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions run-cmake-check.sh
Expand Up @@ -55,6 +55,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
echo "cmake check: successful run on $(git rev-parse HEAD)"
return 0
Expand Down
8 changes: 8 additions & 0 deletions run-make-check.sh
Expand Up @@ -74,6 +74,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
echo "make check: successful run on $(git rev-parse HEAD)"
rm -fr ${CEPH_BUILD_VIRTUALENV:-/tmp}/*virtualenv*
Expand Down