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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_assemblers.py | ||
| test_boot.py | ||
| test_executable.py | ||
| test_noop.py | ||
| test_sources.py | ||
| test_stages.py | ||