From c9fbe0d98bd5fb47c15a3d7556b722cf47d42305 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 25 Oct 2021 00:15:56 +0200 Subject: [PATCH] nixos/kexec: fix test --- nixos/tests/kexec.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/nixos/tests/kexec.nix b/nixos/tests/kexec.nix index ec0cd9796b0e..218683b4a665 100644 --- a/nixos/tests/kexec.nix +++ b/nixos/tests/kexec.nix @@ -4,12 +4,6 @@ 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 = { ... }: @@ -18,8 +12,11 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : { testScript = '' machine.wait_for_unit("multi-user.target") - machine.execute("systemctl kexec &") + machine.succeed('kexec --load /run/current-system/kernel --initrd /run/current-system/initrd --command-line "$(