From 0e5060b4b74bbbc869282cbe021be1f7cd50cd9c Mon Sep 17 00:00:00 2001
From: Stephan Seitz <stephan.seitz@fau.de>
Date: Mon, 14 Oct 2019 15:48:52 +0200
Subject: [PATCH] xfail tensorflow gpu tests on GITLAB_CI

---
 tests/test_native_tensorflow_compilation.py | 1 +
 tests/test_tensorflow_jit.py                | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/test_native_tensorflow_compilation.py b/tests/test_native_tensorflow_compilation.py
index ad13bbb..f473afc 100644
--- a/tests/test_native_tensorflow_compilation.py
+++ b/tests/test_native_tensorflow_compilation.py
@@ -71,6 +71,7 @@ def test_native_tensorflow_compilation_cpu():
 
 
 @pytest.mark.skipif("TRAVIS" in os.environ, reason="nvcc compilation currently not working on TRAVIS")
+@pytest.mark.skipif("GITLAB_CI" in os.environ, reason="linking against cudart does not work on GITLAB_CI")
 def test_native_tensorflow_compilation_gpu():
     tf = pytest.importorskip('tensorflow')
 
diff --git a/tests/test_tensorflow_jit.py b/tests/test_tensorflow_jit.py
index 0f21d8d..2b62374 100644
--- a/tests/test_tensorflow_jit.py
+++ b/tests/test_tensorflow_jit.py
@@ -11,14 +11,15 @@
 from os.path import exists
 
 import pytest
-import sympy
 
 import pystencils
 import pystencils_autodiff
+import sympy
 from pystencils_autodiff import create_backward_assignments
 from pystencils_autodiff.backends.astnodes import TensorflowModule
 
 
+@pytest.mark.xfail(reason="cannot link against cudart on GITLAB CI", strict=False)
 def test_tensorflow_jit_gpu():
 
     pytest.importorskip('tensorflow')
-- 
GitLab