add more info about running smoke tests

This commit is contained in:
Mike Kinney
2021-12-08 13:09:13 -08:00
parent f548d99776
commit 32cc2bb16d
2 changed files with 14 additions and 2 deletions

View File

@@ -207,7 +207,7 @@ pytest -m unit
pytest -m int
```
* To run the smoke test with only one device connected serially:
* To run the smoke test with only one device connected serially (aka smoke1):
```
pytest -m smoke1
@@ -216,6 +216,18 @@ pytest -m smoke1
CAUTION: Running smoke1 will reset values on the device, including the region to 1 (US).
Be sure to hit the reset button on the device after the test is completed.
* To run the smoke test with only two device connected serially (aka smoke2):
```
pytest -m smoke2
```
* To run the wifi smoke test:
```
pytest -m smokewifi
```
* To run a specific test:
```

View File

@@ -19,5 +19,5 @@ def test_smoke2_test():
return_value, out = subprocess.getstatusoutput('meshtastic --test')
assert re.search(r'Writing serial debugging', out, re.MULTILINE)
assert re.search(r'Ports opened', out, re.MULTILINE)
assert re.search(r'Running 50 tests', out, re.MULTILINE)
assert re.search(r'Running 5 tests', out, re.MULTILINE)
assert return_value == 0