Commit graph

3 commits

Author SHA1 Message Date
Martin Beaudoin
14c43b4728 Bugfix for test harness with bad characters in hostname string:
Using a pre-existing CTest command option for removing such characters.
Just a cleaner implementation for this bugfix.
2018-04-16 00:10:22 -04:00
Martin Beaudoin
2adbd0457a Correction for a problem with newer versions of CMake that are refusing to upload the test harness
results  to the CDash server.
The generated error message is the following: "Error message was: Illegal characters found in URL"

Diagnostic:
    If the environment variable CDASH_SUBMIT_LOCAL_HOST_ID is not initialized, the FQN hostname of the
system will be picked by the CMake/CTest scripts. The CTest internal system command used for retrieving
the FQN hostname is indeed leaving a carriage return in the returned hostname string.
That string is in turn reused to construct an URL that will be shared with the CDash service. The presence
of such characters (\n and \r) is no longer accepted by newer versions of CTest/CMake.

Solution:
    The solution is simply to check and remove such characters from the hostname string.
2018-04-15 21:51:43 -04:00
Hrvoje Jasak
5c44761ab3 Reset build directory name: 4.1 2018-02-20 17:56:27 +00:00