debian-forge/test
David Rheinsberg 15e4d0d3a1 test/assemblers: do not fail on modprobe failure
This changes the `modprobe nbd` invocation to be non-fatal on failure,
since it might very well fail on reasonable setups. `modprobe` fails if
it cannot find a module in `/lib/modules`, even if it could reasonably
well figure out whether a module is already loaded. The reason is that
it needs the metadata from the module file to find the required modules
parameters.

If you have `nbd` already loaded but not mapped in `/lib/modules`, the
current call will cause test failures, even though the test would run
smoothly.

Fix this by never requiring `modprobe nbd` to succeed, but instead rely
on the tests failing if accessing `nbd` fails.
2020-05-13 22:00:27 +02:00
..
data/os-release test: convert os-release-tests to test-data 2020-05-13 14:26:05 +02:00
mod test: convert os-release-tests to test-data 2020-05-13 14:26:05 +02:00
pipelines test: fix freq, passno types everywhere 2020-05-06 15:42:23 +02:00
run test: '{. -> ./run}/test_sources.py' 2020-04-24 15:50:44 +02:00
sources_tests/org.osbuild.files sources: add org.osbuild.files source 2020-02-06 19:01:12 +01:00
src test: integrate pylint into the test infrastructure 2020-05-13 14:26:05 +02:00
stages_tests test/stages/groups: fix gid to be a number 2020-05-06 15:42:23 +02:00
.gitignore introduce testing script 2019-07-09 10:29:48 +02:00
__init__.py osbuild: add description() methods 2019-08-07 10:01:17 +02:00
osbuildtest.py test: avoid shadowing globals 2020-04-20 18:58:26 +02:00
test.py test: add base class for tests 2020-05-13 14:26:05 +02:00
test_assemblers.py test/assemblers: do not fail on modprobe failure 2020-05-13 22:00:27 +02:00
test_boot.py test/boot: use -chardev file over -chardev stdio 2020-05-07 20:27:26 +02:00
test_objectstore.py objectstore: extract remove_tree() 2020-04-21 14:46:02 +02:00
test_osbuild.py test/osbuild: add checks for Schema class 2020-05-06 15:42:23 +02:00
test_stageinfo.py test: make ast check pylint conforming 2020-04-20 18:58:26 +02:00
test_stages.py tests/pipelines: embed all sources with their respective pipelines 2020-03-03 00:05:26 +01:00