Skip to content

Commit fa7e47c

Browse files
author
malavhs
committed
Only delete the pytest session specific test
1 parent 386d836 commit fa7e47c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integ/sagemaker/jumpstart/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ def _teardown():
139139

140140
def _delete_hubs(sagemaker_session):
141141
# list Hubs created by PySDK integration tests
142-
list_hub_response = sagemaker_session.list_hubs(name_contains=HUB_NAME_PREFIX)
142+
list_hub_response = sagemaker_session.list_hubs(
143+
name_contains=os.environ[ENV_VAR_JUMPSTART_SDK_TEST_HUB_NAME]
144+
)
143145

144146
for hub in list_hub_response["HubSummaries"]:
145147
if hub["HubName"] != SM_JUMPSTART_PUBLIC_HUB_NAME:

0 commit comments

Comments
 (0)