Merge pull request #76560 from nh2/kexec-test-python

nixosTests.kexec: port to python and mark as broken
This commit is contained in:
Florian Klink 2020-01-01 19:05:09 +01:00 committed by GitHub
commit 2393fa23f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,15 @@
# Test whether fast reboots via kexec work. # Test whether fast reboots via kexec work.
import ./make-test.nix ({ pkgs, ...} : { import ./make-test-python.nix ({ pkgs, lib, ...} : {
name = "kexec"; name = "kexec";
meta = with pkgs.stdenv.lib.maintainers; { meta = with lib.maintainers; {
maintainers = [ eelco ]; 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 = { ... }: machine = { ... }:
@ -11,9 +17,9 @@ import ./make-test.nix ({ pkgs, ...} : {
testScript = testScript =
'' ''
$machine->waitForUnit("multi-user.target"); machine.wait_for_unit("multi-user.target")
$machine->execute("systemctl kexec &"); machine.execute("systemctl kexec &")
$machine->{connected} = 0; machine.connected = False
$machine->waitForUnit("multi-user.target"); machine.wait_for_unit("multi-user.target")
''; '';
}) })