From 349dc568ea591d5298db9ecfb3ea5e235796eb3a Mon Sep 17 00:00:00 2001 From: glx22 Date: Wed, 3 Mar 2021 22:17:15 +0100 Subject: [PATCH] Fix: [CMake] Remove timestamps from regression output --- cmake/scripts/Regression.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/scripts/Regression.cmake b/cmake/scripts/Regression.cmake index 620ed2c2ca..e21a86d292 100644 --- a/cmake/scripts/Regression.cmake +++ b/cmake/scripts/Regression.cmake @@ -53,6 +53,9 @@ string(REPLACE "0x(nil)" "0x00000000" REGRESSION_RESULT "${REGRESSION_RESULT}") string(REPLACE "0x0000000000000000" "0x00000000" REGRESSION_RESULT "${REGRESSION_RESULT}") string(REPLACE "0x0x0" "0x00000000" REGRESSION_RESULT "${REGRESSION_RESULT}") +# Remove timestamps if any +string(REGEX REPLACE "\[[0-9-]+ [0-9:]+\] " "" REGRESSION_RESULT "${REGRESSION_RESULT}") + # Convert the output to a format that is expected (and more readable) by result.txt string(REPLACE "\ndbg: [script]" "\n" REGRESSION_RESULT "${REGRESSION_RESULT}") string(REPLACE "\n " "\nERROR: " REGRESSION_RESULT "${REGRESSION_RESULT}")