summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-03-30 19:08:03 (GMT)
committerGitHub <noreply@github.com>2022-03-30 19:08:03 (GMT)
commitc5846e28252b21681b606c7118e8f02cc7cb488b (patch)
treece101d4df19470626b43a0439fb378c6a39e9a5b /config
parentfac4cd9e667e3ec6e62e7975fbdb53ff0d70cdc6 (diff)
downloadhdf5-c5846e28252b21681b606c7118e8f02cc7cb488b.zip
hdf5-c5846e28252b21681b606c7118e8f02cc7cb488b.tar.gz
hdf5-c5846e28252b21681b606c7118e8f02cc7cb488b.tar.bz2
Update command format, avoid policy warning (#1552)
Diffstat (limited to 'config')
-rw-r--r--config/cmake_ext_mod/runTest.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/cmake_ext_mod/runTest.cmake b/config/cmake_ext_mod/runTest.cmake
index 05f4473..b373fe4 100644
--- a/config/cmake_ext_mod/runTest.cmake
+++ b/config/cmake_ext_mod/runTest.cmake
@@ -128,7 +128,7 @@ message (STATUS "COMMAND Error: ${TEST_ERROR}")
# remove special output
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM)
-string (FIND "${TEST_STREAM}" "_pmi_alps" TEST_FIND_RESULT)
+string (FIND TEST_STREAM "_pmi_alps" TEST_FIND_RESULT)
if (TEST_FIND_RESULT GREATER -1)
string (REGEX REPLACE "^.*_pmi_alps[^\n]+\n" "" TEST_STREAM "${TEST_STREAM}")
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} ${TEST_STREAM})
@@ -142,7 +142,7 @@ else ()
# the error stack remains in the .err file
file (READ ${TEST_FOLDER}/${TEST_OUTPUT}.err TEST_STREAM)
endif ()
-string (FIND "${TEST_STREAM}" "no version information available" TEST_FIND_RESULT)
+string (FIND TEST_STREAM "no version information available" TEST_FIND_RESULT)
if (TEST_FIND_RESULT GREATER -1)
string (REGEX REPLACE "^.*no version information available[^\n]+\n" "" TEST_STREAM "${TEST_STREAM}")
# write back the changes to the original files
@@ -233,7 +233,7 @@ if (NOT TEST_SKIP_COMPARE)
list (SORT v1)
list (SORT v2)
if (NOT v1 STREQUAL v2)
- set(TEST_COMPARE_RESULT 1)
+ set (TEST_COMPARE_RESULT 1)
endif ()
endif ()