Skip to content

Commit 76dbb00

Browse files
fix skip logic (#1153)
1 parent 5ceadd2 commit 76dbb00

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/conftest.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import pytest
1414

1515
from snowflake.connector import SnowflakeConnection
16+
from snowflake.connector.compat import IS_LINUX
1617
from snowflake.connector.telemetry import TelemetryClient, TelemetryData
1718

1819
from . import (
@@ -138,7 +139,9 @@ def pytest_runtest_setup(item) -> None:
138139
current_provider
139140
)
140141
)
141-
if EXTERNAL_SKIP_TAGS.intersection(test_tags) and running_on_public_ci():
142-
pytest.skip("cannot run this test on external CI")
142+
if EXTERNAL_SKIP_TAGS.intersection(test_tags) and (
143+
not IS_LINUX or running_on_public_ci()
144+
):
145+
pytest.skip("cannot run this test on public Snowflake deployment")
143146
elif INTERNAL_SKIP_TAGS.intersection(test_tags) and not running_on_public_ci():
144-
pytest.skip("cannot run this test on internal CI")
147+
pytest.skip("cannot run this test on private Snowflake deployment")

0 commit comments

Comments
 (0)