From b9282b17529a797733bdf57a45513219d0814d0d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 24 Aug 2010 14:01:19 +0000 Subject: [PATCH] * Test whether the build hook automatically skips unavailable slaves. (This is in fact currently broken.) svn path=/nixos/trunk/; revision=23398 --- tests/remote-builds.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/remote-builds.nix b/tests/remote-builds.nix index fd371024b40..f55520b3501 100644 --- a/tests/remote-builds.nix +++ b/tests/remote-builds.nix @@ -82,6 +82,10 @@ in $client->succeed("nix-store -r \$(nix-instantiate ${expr nodes.client.config 2} ${expr nodes.client.config 3})"); $slave1->succeed("test -e $out1 -o -e $out2"); $slave2->succeed("test -e $out1 -o -e $out2"); + + # Test whether the build hook automatically skips unavailable slaves. + $slave1->block; + $client->succeed("nix-build ${expr nodes.client.config 4}"); ''; }