Skip to content

Commit

Permalink
Update command format, avoid policy warning (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF authored Mar 30, 2022
1 parent ab48ed6 commit 870ee8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/cmake_ext_mod/runTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand All @@ -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
Expand Down Expand Up @@ -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 ()

Expand Down

0 comments on commit 870ee8f

Please sign in to comment.