import subprocess from pathlib import Path JOTPLUGGLER_DIR = Path(__file__).parent from openpilot.common.test import OpenpilotTestCase class TestJotpluggler(OpenpilotTestCase): def test_help(self): result = subprocess.run(["./jotpluggler", "-h"], cwd=JOTPLUGGLER_DIR, capture_output=True, text=True) assert result.returncode == 0, result.stderr assert "Usage:" in result.stderr