Skip to content

Commit

Permalink
Refactor run.sh fail branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenad committed Jul 23, 2024
1 parent de0225e commit 54f96c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ else
sanitized_test_output=$(echo "$test_output" | sed -n "/Compiling.*$/d ; s@$solution_dir@@g ; /error: could not compile/q;p")
else
status="fail"
sanitized_test_output=$(echo "$test_output" | awk '/failures:/{y=1;next}y' | sed -n -e '/Error: test result/q;p' | sed -r 's/ //g')
sanitized_test_output=$(echo "$test_output" | sed -n '1,/failures:/d ; /Error: test result/q;p' | sed 's/ //g')
fi

jq -n --arg output "${sanitized_test_output}" --arg status "${status}" '{version: 1, status: $status, message: $output}' >"${results_file}"
Expand Down

0 comments on commit 54f96c1

Please sign in to comment.