Skip to content

Commit 2303e9e

Browse files
committed
fix handling of teardown
1 parent ca32468 commit 2303e9e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.evergreen/scripts/oidc_tester.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ def test_oidc_send_to_remote(sub_test_name: str) -> None:
8787

8888
def teardown_oidc(sub_test_name: str) -> None:
8989
target_dir = _get_target_dir(sub_test_name)
90+
error = None
9091
if sub_test_name in K8S_NAMES:
91-
run_command(f"bash {target_dir}/teardown-pod.sh")
92+
try:
93+
run_command(f"bash {target_dir}/teardown-pod.sh")
94+
except Exception as e:
95+
error = e
9296
run_command(f"bash {target_dir}/teardown.sh")
97+
if error:
98+
raise error

0 commit comments

Comments
 (0)