debian-forge/test/run
Achilleas Koutsou 4455b953ae test: Fix temporary network revert in tests
The netns() function sets up a new namespace for tests.  The function is
also used to determine whether those tests can be run (using
unittest.skipUnless()).  A bug in the function made the changes stick if
the function failed early.  Specifically, when the "ip link" line fails,
the function exits without reverting to the old namespace.

Since the code is used in "skipUnless()", it's run during test
collection, which means that even if the relevant tests aren't selected,
they affect the environment for other tests.
2021-01-20 21:18:29 +01:00
..
__init__.py test: '{. -> ./run}/test_sources.py' 2020-04-24 15:50:44 +02:00
test_assemblers.py test/assemblers: skip unless we can bind mount 2020-12-04 12:28:30 +01:00
test_boot.py test/boot: skip unless we can bind mount 2020-12-04 12:28:30 +01:00
test_executable.py test: add test for osbuild executable 2020-10-27 22:04:09 +01:00
test_noop.py test: import no-op test into the runtime-tests 2020-06-05 09:27:40 +02:00
test_sources.py test: Fix temporary network revert in tests 2021-01-20 21:18:29 +01:00
test_stages.py test/stages: skip unless we can bind mount 2020-12-04 12:28:30 +01:00