git.iko.soy/typeable/nixpkgs
on master help sign in
installer tests: don't rely on swap.target until systemd bug is fixed
commit07ce825a4ef00110c5f93447268f1779fe133074 authorDomen Kožar <domen@dev.si> dateSun 7 Dec 2014, 20:58 (12 years ago) parent90c7b16
1 file changed+3−4
nixos/tests/installer.nix+3−4
nixos/tests/installer.nix+3−4
@@ -58,8 +58,6 @@ let
5858
5959 ${optionalString (!readOnly) "nix.readOnlyStore = false;"}
6060
61− swapDevices = lib.mkOverride 0 [ ];
62−
6361 environment.systemPackages = [ ${optionalString testChannel "pkgs.rlwrap"} ];
6462 }
6563 '';
@@ -187,8 +185,9 @@ let
187185 $machine->succeed("test -e /boot/grub");
188186
189187 # Did the swap device get activated?
190− $machine->waitForUnit("swap.target");
191− $machine->succeed("cat /proc/swaps | grep -q /dev");
188+ # uncomment once https://bugs.freedesktop.org/show_bug.cgi?id=86930 is resolved
189+ #$machine->waitForUnit("swap.target");
190+ $machine->waitUntilSucceeds("cat /proc/swaps | grep -q /dev");
192191
193192 # Check whether the channel works.
194193 $machine->succeed("nix-env -i coreutils >&2");