"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "1e3a183ec4bf6c87b1fc2701acd31489410fa554"
Commit 2416dd36 authored by Aarni Koskela's avatar Aarni Koskela Committed by Titus
Browse files

Add additional guard for "no NVIDIA driver"

parent 62249b4a
...@@ -13,6 +13,11 @@ def pytest_runtest_call(item): ...@@ -13,6 +13,11 @@ def pytest_runtest_call(item):
if str(ae) == "Torch not compiled with CUDA enabled": if str(ae) == "Torch not compiled with CUDA enabled":
pytest.skip("Torch not compiled with CUDA enabled") pytest.skip("Torch not compiled with CUDA enabled")
raise raise
except RuntimeError as re:
# CUDA-enabled Torch build, but no CUDA-capable device found
if "Found no NVIDIA driver on your system" in str(re):
pytest.skip("No NVIDIA driver found")
raise
@pytest.fixture(scope="session") @pytest.fixture(scope="session")
......
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