Skip to content

Commit 44ceafd

Browse files
committed
E2E tests does cleanup only once for error
1 parent 1b522f2 commit 44ceafd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

e2etests/cvdr/cvdr_create_with_branch_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ HOSTNAME=$(cvdr host create)
88
cleanup() {
99
cvdr host delete ${HOSTNAME}
1010
}
11-
trap cleanup EXIT ERR
11+
trap cleanup EXIT
1212

1313
cvdr create \
1414
--host=${HOSTNAME} \

e2etests/cvdr/cvdr_create_with_local_srcs_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ HOSTNAME=$(cvdr host create)
1919
cleanup() {
2020
cvdr host delete ${HOSTNAME}
2121
}
22-
trap cleanup EXIT ERR
22+
trap cleanup EXIT
2323

2424
cvdr create \
2525
--host=${HOSTNAME} \

e2etests/cvdr/cvdr_host_create_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ validate_components
77
cleanup() {
88
cvdr host delete ${HOSTNAME[@]}
99
}
10-
trap cleanup EXIT ERR
10+
trap cleanup EXIT
1111
for i in $(seq 0 1); do
1212
HOSTNAME[i]=$(cvdr host create)
1313
if [[ ! $(cvdr host list) =~ ${HOSTNAME[i]} ]]; then

0 commit comments

Comments
 (0)