Skip to content

Commit ab1772f

Browse files
committed
handle macos
1 parent d0e3552 commit ab1772f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.evergreen/scripts/teardown_tests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import os
4+
import sys
45

56
from utils import DRIVERS_TOOLS, LOGGER, run_command
67

@@ -24,7 +25,9 @@
2425
teardown_kms(SUB_TEST_NAME)
2526

2627
# Tear down auth_aws if applicable.
27-
elif TEST_NAME == "auth_aws":
28+
# We do not run web-identity hosts on macos, because the hosts lack permissions,
29+
# so there is no reason to run the teardown, which would error with a 401.
30+
elif TEST_NAME == "auth_aws" and sys.platform != "darwin":
2831
run_command(f"bash {DRIVERS_TOOLS}/.evergreen/auth_aws/teardown.sh")
2932

3033
LOGGER.info(f"Tearing down tests of type '{TEST_NAME}'... done.")

0 commit comments

Comments
 (0)