Skip to content

Commit

Permalink
Fixes directory path for skipping irrevalant tests (#9225)
Browse files Browse the repository at this point in the history
Signed-off-by: Uday Kurundwade <[email protected]>
Co-authored-by: Uday Kurundwade <[email protected]>
  • Loading branch information
udaysk23 and udaysk23 authored Jan 25, 2024
1 parent f970f93 commit 7627f28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/functional/object/mcg/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def pytest_collection_modifyitems(items):
# Need to update the condition when MCG will get supported
if config.ENV_DATA["platform"].lower() in MANAGED_SERVICE_PLATFORMS:
for item in items.copy():
if "manage/mcg" in str(item.fspath):
if "object/mcg" in str(item.fspath):
log.debug(
f"Test {item} is removed from the collected items"
f" mcg is not supported on {config.ENV_DATA['platform'].lower()}"
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/object/rgw/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def pytest_collection_modifyitems(items):
or version.get_semantic_ocs_version_from_config() < version.VERSION_4_5
):
for item in items.copy():
if "manage/rgw" in str(item.fspath):
if "object/rgw" in str(item.fspath):
log.debug(
f"Test {item} is removed from the collected items"
f" due to {config.ENV_DATA['platform'].lower()} not being an on-prem platform "
Expand Down

0 comments on commit 7627f28

Please sign in to comment.