11 Commits

Author SHA1 Message Date
Sergio Cazzolato
f40b9595a1 tests: remove centos 7 support (#14147)
* 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>
2024-07-04 11:28:21 -03:00
Alberto Mardegan
1c7a038eaa tests: exclude centos-7 from kernel-module-load test
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.
2022-07-12 15:34:46 +02:00
Alberto Mardegan
c0c339903b many: change kmodFindConnection to return an error if match not found
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!
2022-06-29 07:31:55 +03:00
Alberto Mardegan
73364827ab tests: update interfaces-kernel-module-load to match error message 2022-06-22 16:37:53 +03:00
Alberto Mardegan
5f995c49aa tests: use another module for the kernel-module-load tests
The pcrypt module causes a crash in UC18.
2022-06-01 20:17:21 +03:00
Alberto Mardegan
4e8f5253fb tests: extend kernel-module-load test for dynamic loading 2022-06-01 14:43:05 +03:00
Alberto Mardegan
d28f290a22 tests: re-enable kernel-module-load tests on arm
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.
2022-01-11 09:04:15 +03:00
Ian Johnson
df7b3bd77e Merge pull request #11214 from mvo5/kernel-module-load-no-arm
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.
2022-01-06 15:17:40 -06:00
Michael Vogt
2e615b0396 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.
2022-01-06 19:59:55 +01:00
Michael Vogt
bfe3d8b85e tests: ensure that test-snapd-kernel-module-load is removed
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.
2022-01-06 19:56:43 +01:00
Alberto Mardegan
0a985d079a kernel-module-load: add spread test 2021-12-06 11:28:01 +03:00