summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-03-03 22:17:15 +0100
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-03-04 16:22:58 +0100
commit349dc568ea591d5298db9ecfb3ea5e235796eb3a (patch)
treeb42a631ba22aad61937d4ed6427489b0c0ae3a63 /cmake
parent1d79f55a46f498e6c4052abdfd11d87aaab87793 (diff)
downloadopenttd-349dc568ea591d5298db9ecfb3ea5e235796eb3a.tar.xz
Fix: [CMake] Remove timestamps from regression output
Diffstat (limited to 'cmake')
-rw-r--r--cmake/scripts/Regression.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/scripts/Regression.cmake b/cmake/scripts/Regression.cmake
index 620ed2c2c..e21a86d29 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}")