From 5bfb5ab91c4a958f0fd981d2871e021480ff4a5d Mon Sep 17 00:00:00 2001 From: Allen Byrne <50328838+byrnHDF@users.noreply.github.com> Date: Wed, 14 Feb 2024 09:56:26 -0600 Subject: separate out individual checks for string removal (#4015) --- config/cmake/runTest.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/cmake/runTest.cmake b/config/cmake/runTest.cmake index 7fb9d3c..0cfb9a3 100644 --- a/config/cmake/runTest.cmake +++ b/config/cmake/runTest.cmake @@ -137,6 +137,10 @@ file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) 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}) +endif () +string (FIND TEST_STREAM "ulimit -s" TEST_FIND_RESULT) +if (TEST_FIND_RESULT GREATER -1) string (REGEX REPLACE "^.*ulimit -s.*\n" "" TEST_STREAM "${TEST_STREAM}") file (WRITE ${TEST_FOLDER}/${TEST_OUTPUT} ${TEST_STREAM}) endif () -- cgit v0.12