forked from mirrors/nixpkgs
nixosTests: Make VLAN argument optional in python test driver
This commit is contained in:
parent
62a7f80d50
commit
d772206c49
|
@ -911,7 +911,7 @@ def subtest(name: str) -> Iterator[None]:
|
|||
if __name__ == "__main__":
|
||||
log = Logger()
|
||||
|
||||
vlan_nrs = list(dict.fromkeys(os.environ["VLANS"].split()))
|
||||
vlan_nrs = list(dict.fromkeys(os.environ.get("VLANS", "").split()))
|
||||
vde_sockets = [create_vlan(v) for v in vlan_nrs]
|
||||
for nr, vde_socket, _, _ in vde_sockets:
|
||||
os.environ["QEMU_VDE_SOCKET_{}".format(nr)] = vde_socket
|
||||
|
|
Loading…
Reference in a new issue