Commit 1334f89a authored by Thomas Dowrick's avatar Thomas Dowrick
Browse files

Try again with check for GITLAB_CI

parent 27fb3d85
Pipeline #1447 canceled with stage
in 2 minutes and 36 seconds
......@@ -5,9 +5,9 @@ from sksurgeryardavinci.widgets import Viewers
from sksurgeryvtk.models.vtk_surface_model_directory_loader \
import VTKSurfaceModelDirectoryLoader
print("GITLAB ENV: " + str(os.environ.get('GITLAB_CI')))
# GUI tests causing error on Linux CI-machine.
if sys.platform == "linux":
in_gitlab_ci = str(os.environ.get('GITLAB_CI'))
if sys.platform == "linux" and in_gitlab_ci == 'true':
pytest.skip("skipping GUI tests on linux CI", allow_module_level=True)
@pytest.fixture()
......
......@@ -7,7 +7,8 @@ from sksurgeryutils.common_overlay_apps import OverlayOnVideoFeed
# pyint:disable=line-too-long
# GUI tests causing error on Linux CI-machine.
if sys.platform == "linux":
in_gitlab_ci = str(os.environ.get('GITLAB_CI'))
if sys.platform == "linux" and in_gitlab_ci == 'true':
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