Skip to content

Commit 02026ac

Browse files
authored
Unfrobulate "cleanup" in integration test (#1170)
Confusing between test cleanup and self-hosted cleanup
1 parent 5495fe2 commit 02026ac

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

_integration-test/run.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ trap_with_arg() {
1717
done
1818
}
1919

20-
DID_CLEAN_UP=0
21-
# the cleanup function will be the exit point
22-
cleanup () {
23-
if [ "$DID_CLEAN_UP" -eq 1 ]; then
20+
DID_TEAR_DOWN=0
21+
# the teardown function will be the exit point
22+
teardown() {
23+
if [ "$DID_TEAR_DOWN" -eq 1 ]; then
2424
return 0;
2525
fi
26-
DID_CLEAN_UP=1
26+
DID_TEAR_DOWN=1
2727

2828
if [ "$1" != "EXIT" ]; then
2929
echo "An error occurred, caught SIG$1 on line $2";
3030
fi
3131

32-
echo "Cleaning up..."
32+
echo "Tearing down ..."
3333
rm $COOKIE_FILE
3434
echo "Done."
3535
}
36-
trap_with_arg cleanup ERR INT TERM EXIT
36+
trap_with_arg teardown ERR INT TERM EXIT
3737
echo "${_endgroup}"
3838

3939
echo "${_group}Starting Sentry for tests ..."

0 commit comments

Comments
 (0)