diff options
author | Jacek Galowicz <jacek.galowicz@cyberus-technology.de> | 2020-02-14 08:50:07 +0100 |
---|---|---|
committer | Jacek Galowicz <jacek.galowicz@cyberus-technology.de> | 2020-02-14 19:05:03 +0100 |
commit | d772206c49f094a11eba39e892539ffab861d8d1 (patch) | |
tree | d5d4aecb20b789321332bb0d01bc7903b910fcf6 /nixos/lib | |
parent | 62a7f80d50d4b65864d90f57ff09fb5f819b1937 (diff) |
nixosTests: Make VLAN argument optional in python test driver
Diffstat (limited to 'nixos/lib')
-rw-r--r-- | nixos/lib/test-driver/test-driver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/lib/test-driver/test-driver.py b/nixos/lib/test-driver/test-driver.py index 2b8dffec7d59..c27947bc610d 100644 --- a/nixos/lib/test-driver/test-driver.py +++ b/nixos/lib/test-driver/test-driver.py @@ -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 |