tests.installer: rely on swap.target in tests

fixes #5258
This commit is contained in:
Robin Gloster 2017-01-25 16:55:11 +01:00
parent 0f6eab52e1
commit b79fa22b7a
No known key found for this signature in database
GPG Key ID: 5E4C836C632C2882

View File

@ -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");