Skip to content

Commit 7575a9c

Browse files
author
Yadan Wei
committed
handle lookup function issue
1 parent 6ab7be5 commit 7575a9c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/dlc_tests/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,6 +1799,13 @@ def lookup_condition(lookup, image):
17991799
def pytest_generate_tests(metafunc):
18001800
images = metafunc.config.getoption("--images")
18011801

1802+
# Check for public registry canary first
1803+
if os.getenv("IS_PUBLIC_REGISTRY_CANARY", "false").lower() == "true":
1804+
# Only handle framework agnostic tests for public registry
1805+
if "image" in metafunc.fixturenames:
1806+
metafunc.parametrize("image", images)
1807+
return
1808+
18021809
# Parametrize framework specific tests
18031810
for fixture in FRAMEWORK_FIXTURES:
18041811
if fixture in metafunc.fixturenames:

0 commit comments

Comments
 (0)