mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-09 22:13:43 +08:00
14 lines
396 B
Python
14 lines
396 B
Python
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
|