From a38a4d5f96e4d3b42b52f41280e2d8d28c57ef25 Mon Sep 17 00:00:00 2001 From: Jon Rood Date: Mon, 23 Sep 2024 15:59:57 -0600 Subject: [PATCH] Use tee in tests. (#82) --- test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d591018..148c228 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -43,14 +43,14 @@ endmacro(setup_test) # Standard regression test function(add_test_r TEST_NAME) setup_test() - add_test(${TEST_NAME} sh -c "${MPI_COMMANDS} ${CMAKE_BINARY_DIR}/${EXAWIND_EXE_NAME} ${MPIEXEC_POSTFLAGS} ${CURRENT_TEST_BINARY_DIR}/${TEST_NAME}.yaml > ${TEST_NAME}.log ${SAVE_GOLDS_COMMAND} ${FCOMPARE_COMMAND}") + add_test(${TEST_NAME} sh -c "${MPI_COMMANDS} ${CMAKE_BINARY_DIR}/${EXAWIND_EXE_NAME} ${MPIEXEC_POSTFLAGS} ${CURRENT_TEST_BINARY_DIR}/${TEST_NAME}.yaml 2>&1 | tee ${TEST_NAME}.log ${SAVE_GOLDS_COMMAND} ${FCOMPARE_COMMAND}") # Set properties for test set_tests_properties(${TEST_NAME} PROPERTIES TIMEOUT 5400 PROCESSORS ${TEST_NP} WORKING_DIRECTORY "${CURRENT_TEST_BINARY_DIR}/" LABELS "regression" - ATTACHED_FILES_ON_FAIL "${CURRENT_TEST_BINARY_DIR}/${TEST_NAME}.log") + ATTACHED_FILES "${CURRENT_TEST_BINARY_DIR}/${TEST_NAME}.log") endfunction(add_test_r) #=============================================================================