Changeset: 2f3e05cf7322 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2f3e05cf7322
Modified Files:
testing/Mtest.py.in
Branch: Apr2019
Log Message:
Better check whether hostname is usable in tests.
If the hostname that we found is "localhost", we couldn't use the
actual hostname, so set the BAD_HOSTNAME conditional.
diffs (20 lines):
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -4084,10 +4084,13 @@ def main(argv) :
os.chdir(BACK)
# check whether our hostname makes sense
- try:
- socket.getaddrinfo(socket.gethostname(), None)
- except:
+ if os.environ['HOST'] == 'localhost':
CONDITIONALS['BAD_HOSTNAME'] = '#' # True
+ else:
+ try:
+ socket.getaddrinfo(socket.gethostname(), None)
+ except:
+ CONDITIONALS['BAD_HOSTNAME'] = '#' # True
# read '.Mapprove.rc'
if THISFILE == 'Mapprove.py':
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list