Fix for new policy

This commit is contained in:
Allen Byrne 2019-01-14 12:13:03 -06:00
parent 703acba51f
commit a7aaf073d2

View File

@ -126,7 +126,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}")
if ("${TEST_FIND_RESULT}" GREATER "0")
if (NOT "${TEST_FIND_RESULT}" STREQUAL "0")
string (REGEX REPLACE "^.*_pmi_alps[^\n]+\n" "" TEST_STREAM "${TEST_STREAM}")
file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} ${TEST_STREAM})
endif ()