2013-09-16 17:15:42 +02:00
|
|
|
# Test whether fast reboots via kexec work.
|
|
|
|
|
2014-04-14 14:02:44 +02:00
|
|
|
import ./make-test.nix {
|
2014-06-28 16:04:49 +02:00
|
|
|
name = "kexec";
|
2013-09-16 17:15:42 +02:00
|
|
|
|
|
|
|
machine = { config, pkgs, ... }:
|
|
|
|
{ virtualisation.vlans = [ ]; };
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
$machine->waitForUnit("multi-user.target");
|
|
|
|
$machine->execute("systemctl kexec &");
|
|
|
|
$machine->{connected} = 0;
|
|
|
|
$machine->waitForUnit("multi-user.target");
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|