Additional ambarella kernel driver is required to access the CV2X
processor registers so this enabled the capability to set the internal
value at run time.
tests: cherry-pick shellcheck fix `bd730fd4` from #10443 (2.51)
The new and the older shellcheck versions disagree about the
nature of the echo -e warning. New shellcheck warns with SC3037
and old with SC2039. The old shellcheck runs when in the
tests/unit/go spread test and the new in GH actions. Given that
this is the only instance where this is a problem this commit just
makes shellcheck ignore both the old and the new code for the issue.
This was merged as part of #10443 [1] but because it got squashed
we need the isolated fix for 2.51.
snapstate: abort kernel refresh if no gadget update can be found
* snapstate: abort kernel refresh if no gadget update can be found
This commit detects if a kernel refresh is in progress that does
not contain a "update-gadget-assets" task and aborts this part
of the change if that happens. This works around the issue that
is triggered in https://bugs.launchpad.net/snapd/+bug/1940553
A manager test for this is also added.
* handler: explicitly error on missing update-gadget-assets task (thanks to Ian,Samuele)
* snapstate: add/use new TestingOnlyLeaveOutKernetUpdateGadgetAssets
To test an upgrade from an old snapd that does not create the
"update-gadget-assets" tasks a new flag
"TestingOnlyLeaveOutKernetUpdateGadgetAssets" is added that can
be used in tests to test that snapd DTRT when upgrading from
a broken version of snapd.
We got a new shellcheck in "edge" and it seems this broke master.
This commit adds the required fixes.
* tests: update `shellcheck disable=SC3037` for echo -e
We want to keep the `echo -e` - using printf is not cleaner and
also results in a shellcheck warning. We already had a shellcheck
disable that seems to have been changed with the new version of
shellcheck. So this commit updates it to the new SC3037 value.
We want to check that `assumes` are handled correctly early. This
commit adds manager tests for `Install`, `Update` and `UpdateMany`
to ensure that snaps with the wrong `assumes` are rejected before
the taskset is generated.
This also required adding "snap-yaml" to the mockServer in
the manager tests.