snapd tests fail on snapd 2.11 on Arch Linux
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Medium
|
John Lenton |
Bug Description
by updating snapd packages (without confinement nor apparmor) on Arch Linux from 2.0.10 to 2.11 I notice that some (unit) tests doesn't work correctly:
-------
FAIL: api_test.go:1980: apiSuite.
api_test.go:2000:
c.Check(err, check.IsNil)
... value *errors.errorString = &errors.
api_test.go:2002:
c.Check(
... obtained snapstate.Flags = 0
... expected snapstate.Flags = 4
-------
FAIL: api_test.go:2022: apiSuite.
api_test.go:2034:
c.Check(err, check.ErrorMatches, "cannot use devmode and jailmode flags together")
... error string = "this system cannot honour the jailmode flag"
... regex string = "cannot use devmode and jailmode flags together"
-------
FAIL: api_test.go:1728: apiSuite.
api_test.go:1759:
c.Check(
... obtained snapstate.Flags = 1
... expected snapstate.Flags = 0
-------
FAIL: api_test.go:1340: apiSuite.
api_test.go:1365:
c.Check(
... obtained string = "this system cannot honour the jailmode flag"
... expected string = "cannot use devmode and jailmode flags together"
OOPS: 117 passed, 1 skipped, 4 FAILED
--- FAIL: Test (4.00s)
FAIL
description: | updated |
Changed in snappy: | |
status: | In Progress → Fix Committed |
Changed in snappy: | |
status: | Fix Committed → Fix Released |
Aha! Those tests need a `if release. ReleaseInfo. ForceDevMode( ) { c.Skip("forced devmode distro") }`