Skip to content

Commit 163c0f7

Browse files
committed
Disable all tests on OSX
- They never work and CTRE doesn't care about fixing it
1 parent a23110f commit 163c0f7

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

tests/run_tests.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
import subprocess
77

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

12-
subprocess.check_call([sys.executable, "-m", "pytest"])
15+
subprocess.check_call([sys.executable, "-m", "pytest"])

tests/test_ctre.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import phoenix5
2-
import sys
3-
import pytest
42

53

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

1411

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

2319

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

3227

33-
@pytest.mark.skipif(sys.platform == "darwin", reason="OSX CI failure")
3428
def test_follow():
3529
m1 = phoenix5.WPI_TalonFX(3)
3630
m2 = phoenix5.WPI_TalonFX(4)

0 commit comments

Comments
 (0)