From fa0457208587f52a17e828b51e56848f101b518b Mon Sep 17 00:00:00 2001 From: Pascal Welsch Date: Thu, 14 Oct 2021 03:42:56 +0200 Subject: [PATCH] Exit with exit code of test run --- tool/run_coverage_locally.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tool/run_coverage_locally.sh b/tool/run_coverage_locally.sh index c1d53acb..285bfb28 100755 --- a/tool/run_coverage_locally.sh +++ b/tool/run_coverage_locally.sh @@ -19,6 +19,9 @@ dart \ --enable-asserts \ test/kt_dart_test.dart +TEST_EXIT_CODE=$? +echo "$TEST_EXIT_CODE" + pub global run coverage:format_coverage \ --lcov \ --in=out/coverage/coverage.json \ @@ -32,3 +35,5 @@ if type genhtml >/dev/null 2>&1; then else echo "genhtml not installed, can't generate html coverage output" fi + +exit $TEST_EXIT_CODE \ No newline at end of file