* tets: remove support for centos-7
Centos-7 is EOL since June-30
Signed-off-by: Sergio Cazzolato <sergio.cazzolato@canonical.com>
* update the release_tst.go with the real centos 9 info
---------
Signed-off-by: Sergio Cazzolato <sergio.cazzolato@canonical.com>
The test fails because a module is not found:
modprobe[28208]: FATAL: Module bfq not found.
Given how hard it is to find kernel modules available on all distros,
just drop Centos7.
Rename the function to kmodEnsureConnection() and make it just return an
error if a matching connection was not found; the caller is anyway not
interested in retrieving the attributes of the connection.
Thanks @pedronis for the suggestion!
Find another pair of modules which we can use on all tested devices.
The problem with the previous modules was that on the Raspberry PI the
pcspkr module was missing, and the parport_pc was causing a
(recoverable) kernel crash.
tests: exclude interfaces-kernel-module load on arm
The tests on the pi fail with <kill-timeout reached>. The
deeper reason needs investigation but right now it breaks the
testing because this also fails in restore with stops the full
test run.
The tests on the pi fail with `<kill-timeout reached>`. The
deeper reason needs investigation but right now it breaks the
testing because this also fails in restore with stops the full
test run.
The `interfaces-kernel-module-load` test currently has no restore
section which means that if the test fails for some reason the
subsequent cleanup on core systems will fail because:
```
2021-12-24T11:45:04.0436279Z + snap remove --purge core
2021-12-24T11:45:04.0437140Z error: cannot remove "core": snap "core" is not removable: snap is being used
2021-12-24T11:45:04.0438421Z by snap test-snapd-kernel-module-load.
```
This commit adds the missing restore.