From: maier Date: Fri, 13 Dec 2013 20:47:49 +0000 (+0000) Subject: Testsuite: Only use hostname output up to first period "." X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31838d932b26b4d0aadc53d062a4946ac3f067fc;p=dealii-svn.git Testsuite: Only use hostname output up to first period "." git-svn-id: https://svn.dealii.org/trunk@31995 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/scripts/run_testsuite.cmake b/deal.II/cmake/scripts/run_testsuite.cmake index ffa6253e5b..12d259100f 100644 --- a/deal.II/cmake/scripts/run_testsuite.cmake +++ b/deal.II/cmake/scripts/run_testsuite.cmake @@ -235,6 +235,7 @@ MESSAGE("-- CTEST_CMAKE_GENERATOR: ${CTEST_CMAKE_GENERATOR}") FIND_PROGRAM(HOSTNAME_COMMAND NAMES hostname) IF(NOT "${HOSTNAME_COMMAND}" MATCHES "-NOTFOUND") EXEC_PROGRAM(${HOSTNAME_COMMAND} OUTPUT_VARIABLE _hostname) + STRING(REGEX REPLACE "\\..*$" "" _hostname ${_hostname}) SET(CTEST_SITE "${_hostname}") ELSE() # Well, no hostname available. What about: