From b79fa22b7ab65089bf9a28e15b582b0480d3ee99 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Wed, 25 Jan 2017 16:55:11 +0100 Subject: tests.installer: rely on swap.target in tests fixes #5258 --- nixos/tests/installer.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix index 1df2c651f9bc..35dd00fe630f 100644 --- a/nixos/tests/installer.nix +++ b/nixos/tests/installer.nix @@ -115,8 +115,8 @@ let # Did the swap device get activated? # uncomment once https://bugs.freedesktop.org/show_bug.cgi?id=86930 is resolved - #$machine->waitForUnit("swap.target"); - $machine->waitUntilSucceeds("cat /proc/swaps | grep -q /dev"); + $machine->waitForUnit("swap.target"); + $machine->succeed("cat /proc/swaps | grep -q /dev"); # Check whether the channel works. $machine->succeed("nix-env -iA nixos.procps >&2"); -- cgit 1.4.1