move pytest to HIL

pull/134/head
Peter Buchegger 2021-09-25 20:24:33 +01:00
rodzic e8f6f63b67
commit 488eecf0aa
15 zmienionych plików z 14 dodań i 5 usunięć

Wyświetl plik

@ -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

1
.gitignore vendored
Wyświetl plik

@ -7,3 +7,4 @@ report.xml
output
__pycache__
.pytest_cache
spiffs.bin

Wyświetl plik

@ -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():

Wyświetl plik

@ -1,7 +1,7 @@
import os
import pytest
import serial
from testlib.common import runProcess
from HIL.common import runProcess
class EspFlash:

Wyświetl plik

@ -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):