From 4125ba0597f506cfa8e8a504c60e3b85e6f25d14 Mon Sep 17 00:00:00 2001 From: DJDavies2 Date: Fri, 7 Jun 2024 10:33:38 +0100 Subject: [PATCH] Handle MPI producetion from drhook test. --- tests/test_drhook_no_output.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_drhook_no_output.cmake b/tests/test_drhook_no_output.cmake index 9efd557..4bdf0e7 100644 --- a/tests/test_drhook_no_output.cmake +++ b/tests/test_drhook_no_output.cmake @@ -29,7 +29,11 @@ function( run_command COMMAND ) set( error TRUE ) message("${stdout}") message("${stderr}") - message("Test failed. Executable should have no output") + if( $ENV{FIAT_TEST_IGNORE_MPI_OUTPUT} ) + set( error FALSE ) + else() + message("Test failed. Executable should have no output") + endif() endif() if( error )