From abd0b3f411839ac83896a3a0c9150e3265031c06 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Fri, 30 May 2014 21:22:25 +0200 Subject: [PATCH] nixos.tests.installer: Attempt to fix race condition Attempt to fix race condition in installer tests, especially the grub1 test. The latter was failing when running "parted /dev/sda ..." because /dev/sda didn't exist yet. --- nixos/tests/installer.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix index 1c3fb148410c..98e8142a0dfd 100644 --- a/nixos/tests/installer.nix +++ b/nixos/tests/installer.nix @@ -147,6 +147,9 @@ let or die "bad `hello' output"; ''} + # Wait for hard disks to appear in /dev + $machine->succeed("udevadm settle"); + # Partition the disk. ${createPartitions}