Commit 432cc778 authored by Thomas Dowrick's avatar Thomas Dowrick
Browse files

Fix comparisoin for GITLAB_CI var

parent dfa107ac
Pipeline #1440 failed with stage
in 2 minutes and 52 seconds
......@@ -6,7 +6,7 @@ from sksurgeryvtk.models.vtk_surface_model_directory_loader \
import VTKSurfaceModelDirectoryLoader
# GUI tests causing error on Linux CI-machine.
if sys.platform == "linux":
if os.environ.get('GITLAB_CI') == 'true' and sys.platform == "linux":
pytest.skip("skipping GUI tests on linux CI", allow_module_level=True)
@pytest.fixture()
......
......@@ -7,7 +7,7 @@ from sksurgeryutils.common_overlay_apps import OverlayOnVideoFeed
# pyint:disable=line-too-long
# GUI tests causing error on Linux CI-machine.
if sys.platform == "linux":
if os.environ.get('GITLAB_CI') == 'true' and sys.platform == "linux":
pytest.skip("skipping GUI tests on linux CI", allow_module_level=True)
@pytest.fixture(scope="module")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment