From 88fb315095a34a1e5b08bc681408eb7bccd16a17 Mon Sep 17 00:00:00 2001 From: Daniel Mita <966706+m-dango@users.noreply.github.com> Date: Thu, 5 Sep 2024 18:44:00 +0100 Subject: [PATCH] Update success check (#14) --- bin/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/run.sh b/bin/run.sh index e4746f5..6ce6f17 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -47,7 +47,7 @@ test_output=$( # Write the results.json file based on the exit code of the command that was # just executed that tested the implementation file: -if [[ $test_output = *'All tests successful.' ]]; then +if (echo "$test_output" | grep -e '^All tests successful.$'); then jq -n --arg output "$test_output" \ '{version: 1, status: "pass", message: $output}' \ > "$results_file"