kopia lustrzana https://github.com/lora-aprs/LoRa_APRS_iGate
move pytest to HIL
rodzic
e8f6f63b67
commit
488eecf0aa
|
@ -10,6 +10,6 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Install python reqirements
|
||||
run: cd testlib && make install
|
||||
run: cd HIL && make install
|
||||
- name: Run Tests
|
||||
run: cd testlib && make test
|
||||
run: cd HIL && make test
|
||||
|
|
|
@ -7,3 +7,4 @@ report.xml
|
|||
output
|
||||
__pycache__
|
||||
.pytest_cache
|
||||
spiffs.bin
|
||||
|
|
|
@ -64,6 +64,14 @@ class AprsIs:
|
|||
yield line
|
||||
return None
|
||||
|
||||
def wait_for(self, towait):
|
||||
for i in range(2, 10):
|
||||
line = self.get_line()
|
||||
for l in line:
|
||||
if l == towait:
|
||||
return
|
||||
raise
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def APRSIS():
|
|
@ -1,7 +1,7 @@
|
|||
import os
|
||||
import pytest
|
||||
import serial
|
||||
from testlib.common import runProcess
|
||||
from HIL.common import runProcess
|
||||
|
||||
|
||||
class EspFlash:
|
|
@ -1,5 +1,5 @@
|
|||
from testlib.esp_dut import ESP
|
||||
from testlib.aprs_con import APRSIS, AprsIs
|
||||
from HIL.esp_dut import ESP
|
||||
from HIL.aprs_con import APRSIS, AprsIs
|
||||
|
||||
|
||||
def test_basic_port(ESP):
|
Ładowanie…
Reference in New Issue