mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-21 06:13:41 +00:00
HIL: more rigorous test of firmware update process
This commit is contained in:
parent
162309e54a
commit
b5da8015b5
1 changed files with 4 additions and 1 deletions
|
|
@ -4,8 +4,11 @@ import subprocess
|
|||
|
||||
class TestUpdate(TestBase):
|
||||
def test_Update(self):
|
||||
# first update: actually update to the firmware version we want to test
|
||||
self.vna.cmd("DEV:UPDATE ../../combined.vnafw", timeout=60)
|
||||
|
||||
# second update: check that we still have a working firmware update with this version
|
||||
self.vna.cmd("DEV:UPDATE ../../combined.vnafw", timeout=60)
|
||||
|
||||
reported = self.vna.query("DEV:INF:FWREVISION?")
|
||||
major = subprocess.check_output("grep -oP '(?<=FW_MAJOR=)[0-9]+' ../VNA_embedded/Makefile", shell=True).strip()
|
||||
minor = subprocess.check_output("grep -oP '(?<=FW_MINOR=)[0-9]+' ../VNA_embedded/Makefile", shell=True).strip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue