nixpkgs/nixos/lib/test-driver
Viktor Kleen 6d766ae8b7
nixos/test-driver: deduplicate VLANs
Naively deduplicate VLANs in the python driver for NixOS tests. The
current implementation accidentally works, since the VLan class mutates
the environment. On construction it sets QEMU_VDE_SOCKET_${id} and this
environment variable gets overwritten once a second VLAN with the same
id is constructed. Because the NIC flags passed to qemu just use the
QEMU_VDE_SOCKET_${id} environment variable, this implicitly chooses a
single vde_switch process for each VLAN.

However, this leads to unusable vde_switch processes being spawned in
each test run and as a side effect makes it impossible to access the
correct VLan objects in the interactive test driver. It also makes it
remarkably hard to understand why the current implementation ever
worked.
2022-03-22 13:16:28 +00:00
..
test_driver nixos/test-driver: deduplicate VLANs 2022-03-22 13:16:28 +00:00
default.nix nixos/test-driver: remove unused imports, add pylint unused-import check 2022-01-02 23:12:21 +01:00
setup.py nixos/test-driver: bump version 2022-01-01 23:17:37 +01:00