regression_test: Fix partial failure logic. Use Regex

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-12-08 16:42:06 -08:00
parent 9d3ff010ef
commit 13a4d79715

View File

@@ -541,7 +541,7 @@ function test() {
execution="$((end-start))"
TEXT=$(cat "${FILENAME}".txt)
STDERR=""
if [[ "tests failed" == *"${TEXT}" ]]
if [[ $TEXT =~ "tests failed" ]]
then
TEXTCLASS="partial_failure"
TDTEXT="Partial Failure"