* Prevent tests from accessing the host's network accidentally. For

instance, `nixos-rebuild' in the installer test does a `nix-pull'
  from nixos.org.

svn path=/nixos/branches/boot-order/; revision=22325
wip/yesman
Eelco Dolstra 14 years ago
parent a65b5ec81c
commit ac22e5369f
  1. 4
      modules/testing/test-instrumentation.nix

@ -80,6 +80,10 @@ in
# serial port).
services.syslogd.extraConfig = "*.*,kern.none /dev/ttyS0";
# Prevent tests from accessing the Internet.
networking.defaultGateway = mkOverride 50 {} "";
networking.nameservers = mkOverride 50 {} [ ];
};
}

Loading…
Cancel
Save