From 31838d932b26b4d0aadc53d062a4946ac3f067fc Mon Sep 17 00:00:00 2001 From: maier Date: Fri, 13 Dec 2013 20:47:49 +0000 Subject: [PATCH] Testsuite: Only use hostname output up to first period "." git-svn-id: https://svn.dealii.org/trunk@31995 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/scripts/run_testsuite.cmake | 1 + 1 file changed, 1 insertion(+) 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: -- 2.39.5