mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-10 14:33:42 +08:00
14 lines
385 B
Python
14 lines
385 B
Python
import subprocess
|
|
from pathlib import Path
|
|
|
|
from openpilot.common.test import OpenpilotTestCase
|
|
|
|
CABANA_DIR = Path(__file__).parent.parent
|
|
|
|
|
|
class TestCabanaUi(OpenpilotTestCase):
|
|
def test_help(self):
|
|
result = subprocess.run(["./cabana", "-h"], cwd=CABANA_DIR, capture_output=True, text=True)
|
|
assert result.returncode == 0, result.stderr
|
|
assert "Usage:" in result.stderr
|