Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* snap-repair: minimal uc20 support This is a minimal change for snap-repair to support uc20. The tests require a rework, ideally we would run all tests for a uc16 and a uc20 model. * snap-repair: improve tests by checking that we write a valid modeenv Thanks to Ian. * tests: move uc20 snap-repair test into tests/main/snap-repair * snap-reapir: extract uc16/uc18 specific tests into runner16Suite This commit keeps the version independent tests in runnerSuite. It also uses testutil.BaseTest to simplify things. * snap-repair: refactor tests and add uc20 TestLoadStateInitDeviceInfoFail The tests that deal with initState/writeSeedAssert now run with both uc16/uc20 where it makes sense. A new test runner20Suite.TestLoadStateInitDeviceInfoFail that checks the failure conditions for modeenv reading is also added. * snap-repair: simplify unit tests some more * snap-repair: use goconfigparser to get model from modeenv * snap-repair: use systems/*/model as source for findTimeLowerBound() * snap-repair: tweak findBrandAndModel16 helper Co-authored-by: Maciej Borzecki <maciek.borzecki@gmail.com> * cmd/snap-repair: tweak model variable name, fix build Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com> Co-authored-by: Maciej Borzecki <maciek.borzecki@gmail.com> Co-authored-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
- Loading branch information
1 parent
84c33a3
commit 882d37e
Showing
3 changed files
with
323 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.