summary refs log tree commit diff
path: root/nixos/tests/kexec.nix
blob: b09287682c01c66192e727c20bc7954305e3dd58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Test whether fast reboots via kexec work.

import ./make-test.nix  {

  machine = { config, pkgs, ... }:
    { virtualisation.vlans = [ ]; };

  testScript =
    ''
      $machine->waitForUnit("multi-user.target");
      $machine->execute("systemctl kexec &");
      $machine->{connected} = 0;
      $machine->waitForUnit("multi-user.target");
    '';

}