Skip to content

Commit

Permalink
Disable all tests on OSX
Browse files Browse the repository at this point in the history
- They never work and CTRE doesn't care about fixing it
  • Loading branch information
virtuald committed Dec 30, 2023
1 parent a23110f commit 163c0f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 6 additions & 3 deletions tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
import subprocess

if __name__ == "__main__":
root = abspath(dirname(__file__))
os.chdir(root)
# CTRE's library tends to crash on OSX at program exit, so
# don't bother running the tests in CI
if sys.platform != "darwin":
root = abspath(dirname(__file__))
os.chdir(root)

subprocess.check_call([sys.executable, "-m", "pytest"])
subprocess.check_call([sys.executable, "-m", "pytest"])
6 changes: 0 additions & 6 deletions tests/test_ctre.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import phoenix5
import sys
import pytest


@pytest.mark.skipif(sys.platform == "darwin", reason="OSX CI failure")
def test_wpi_talonsrx():
m = phoenix5.WPI_TalonSRX(0)
m.setNeutralMode(phoenix5.NeutralMode.Brake)
Expand All @@ -12,7 +9,6 @@ def test_wpi_talonsrx():
del m


@pytest.mark.skipif(sys.platform == "darwin", reason="OSX CI failure")
def test_wpi_talonfx():
m = phoenix5.WPI_TalonFX(1)
m.setNeutralMode(phoenix5.NeutralMode.Brake)
Expand All @@ -21,7 +17,6 @@ def test_wpi_talonfx():
del m


@pytest.mark.skipif(sys.platform == "darwin", reason="OSX CI failure")
def test_wpi_victorspx():
m = phoenix5.WPI_VictorSPX(2)
m.setNeutralMode(phoenix5.NeutralMode.Brake)
Expand All @@ -30,7 +25,6 @@ def test_wpi_victorspx():
del m


@pytest.mark.skipif(sys.platform == "darwin", reason="OSX CI failure")
def test_follow():
m1 = phoenix5.WPI_TalonFX(3)
m2 = phoenix5.WPI_TalonFX(4)
Expand Down

0 comments on commit 163c0f7

Please sign in to comment.