summary refs log tree commit diff
path: root/nixos/tests/kexec.nix
blob: ec0cd9796b0e2a488266303ac1b9eddb9a3bd4fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Test whether fast reboots via kexec work.

import ./make-test-python.nix ({ pkgs, lib, ...} : {
  name = "kexec";
  meta = with lib.maintainers; {
    maintainers = [ eelco ];
    # Currently hangs forever; last output is:
    #     machine # [   10.239914] dhcpcd[707]: eth0: adding default route via fe80::2
    #     machine: waiting for the VM to finish booting
    #     machine # Cannot find the ESP partition mount point.
    #     machine # [   28.681197] nscd[692]: 692 checking for monitored file `/etc/netgroup': No such file or directory
    broken = true;
  };

  machine = { ... }:
    { virtualisation.vlans = [ ]; };

  testScript =
    ''
      machine.wait_for_unit("multi-user.target")
      machine.execute("systemctl kexec &")
      machine.connected = False
      machine.wait_for_unit("multi-user.target")
    '';
})