Skip to content

Instantly share code, notes, and snippets.

@michicc
Created July 19, 2020 17:57
Show Gist options
  • Save michicc/6e95de08afef461fafadbbf5b28d9671 to your computer and use it in GitHub Desktop.
Save michicc/6e95de08afef461fafadbbf5b28d9671 to your computer and use it in GitHub Desktop.
diff --git a/cmake/scripts/Regression.cmake b/cmake/scripts/Regression.cmake
index 0b4e522d3..926457839 100644
--- a/cmake/scripts/Regression.cmake
+++ b/cmake/scripts/Regression.cmake
@@ -68,6 +68,10 @@ file(READ ai/${REGRESSION_TEST}/result.txt REGRESSION_EXPECTED)
string(REPLACE "\n" ";" REGRESSION_RESULT "${REGRESSION_RESULT}")
string(REPLACE "\n" ";" REGRESSION_EXPECTED "${REGRESSION_EXPECTED}")
+# Strip possible trailing newline
+string(REGEX REPLACE ";$" "" REGRESSION_RESULT "${REGRESSION_RESULT}")
+string(REGEX REPLACE ";$" "" REGRESSION_EXPECTED "${REGRESSION_EXPECTED}")
+
set(ARGC 0)
set(ERROR NO)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment