We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5495fe2 commit 02026acCopy full SHA for 02026ac
_integration-test/run.sh
@@ -17,23 +17,23 @@ trap_with_arg() {
17
done
18
}
19
20
-DID_CLEAN_UP=0
21
-# the cleanup function will be the exit point
22
-cleanup () {
23
- if [ "$DID_CLEAN_UP" -eq 1 ]; then
+DID_TEAR_DOWN=0
+# the teardown function will be the exit point
+teardown() {
+ if [ "$DID_TEAR_DOWN" -eq 1 ]; then
24
return 0;
25
fi
26
- DID_CLEAN_UP=1
+ DID_TEAR_DOWN=1
27
28
if [ "$1" != "EXIT" ]; then
29
echo "An error occurred, caught SIG$1 on line $2";
30
31
32
- echo "Cleaning up..."
+ echo "Tearing down ..."
33
rm $COOKIE_FILE
34
echo "Done."
35
36
-trap_with_arg cleanup ERR INT TERM EXIT
+trap_with_arg teardown ERR INT TERM EXIT
37
echo "${_endgroup}"
38
39
echo "${_group}Starting Sentry for tests ..."
0 commit comments