Skip to content

Commit a7f392b

Browse files
committed
nested push to cloudwatch method in cleanup
1 parent 3bd1609 commit a7f392b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/canary/scripts/run_test.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,13 @@ function cleanup {
6363
export PYTHONPATH=..
6464
python service_cleanup.py
6565

66-
}
67-
trap cleanup EXIT
68-
69-
function push_to_cloudwatch {
66+
#push to metrics to cloudwatch
7067
echo "Pushing Codebuild stats to Cloudwatch."
7168
cd $SCRIPTS_DIR
7269
python push_stats_to_cloudwatch.py
7370
}
74-
trap push_to_cloudwatch EXIT
71+
trap cleanup EXIT
72+
7573

7674
# Update kubeconfig
7775
aws --region $CLUSTER_REGION eks update-kubeconfig --name $CLUSTER_NAME

0 commit comments

Comments
 (0)