Skip to content

Commit 23ce6f1

Browse files
committed
It's important for build-automation to fail when tests fail... :(
1 parent de31a34 commit 23ce6f1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

integration-tests/run-serve-tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ cleanup() {
3939
awk "/${binary_name}/,NF=1" |
4040
xargs kill
4141
fi
42+
exit "${ret:-0}"
4243
}
4344
trap cleanup EXIT
4445

@@ -60,4 +61,5 @@ if curl --silent "http://127.0.0.1:${open_port}/healthz" | grep 'Count: 2, Faile
6061
echo "passed"
6162
else
6263
echo "failed, exit code $?"
64+
ret=1
6365
fi

0 commit comments

Comments
 (0)