[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
87/376: tests/remote-builds.nix: Test failing build
From: |
Ludovic Courtès |
Subject: |
87/376: tests/remote-builds.nix: Test failing build |
Date: |
Wed, 28 Jan 2015 22:04:13 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit 01ddf53ee9ff77cbd7fc659740279a6ba80fbdae
Author: Eelco Dolstra <address@hidden>
Date: Thu Jul 24 12:10:06 2014 +0200
tests/remote-builds.nix: Test failing build
---
tests/remote-builds.nix | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/tests/remote-builds.nix b/tests/remote-builds.nix
index 6fc372c..81b81b8 100644
--- a/tests/remote-builds.nix
+++ b/tests/remote-builds.nix
@@ -25,7 +25,7 @@ let
system = "i686-linux";
PATH = "''${utils}/bin";
builder = "''${utils}/bin/sh";
- args = [ "-c" "echo Hello; mkdir $out $foo; cat
/proc/sys/kernel/hostname > $out/host; ln -s $out $foo/bar; sleep 5" ];
+ args = [ "-c" "if [ ${toString nr} = 5 ]; then echo FAIL; exit 1; fi;
echo Hello; mkdir $out $foo; cat /proc/sys/kernel/hostname > $out/host; ln -s
$out $foo/bar; sleep 5" ];
outputs = [ "out" "foo" ];
}
'';
@@ -92,6 +92,9 @@ in
$slave1->succeed("test -e $out1 -o -e $out2");
$slave2->succeed("test -e $out1 -o -e $out2");
+ # And a failing build.
+ $client->fail("nix-build ${expr nodes.client.config 5}");
+
# Test whether the build hook automatically skips unavailable slaves.
$slave1->block;
$client->succeed("nix-build ${expr nodes.client.config 4}");
- 62/376: Be more strict about file names in NARs, (continued)
- 62/376: Be more strict about file names in NARs, Ludovic Courtès, 2015/01/28
- 78/376: Pass -pthread only for programs that need it, Ludovic Courtès, 2015/01/28
- 80/376: Remove some dead code, Ludovic Courtès, 2015/01/28
- 72/376: Remove dead code, Ludovic Courtès, 2015/01/28
- 81/376: Add some assertions, Ludovic Courtès, 2015/01/28
- 82/376: More debugging, Ludovic Courtès, 2015/01/28
- 85/376: tests/remote-builds.nix: Don't try cache.nixos.org, Ludovic Courtès, 2015/01/28
- 79/376: Remove some obsolete files, Ludovic Courtès, 2015/01/28
- 83/376: Fix bogus pass by reference, Ludovic Courtès, 2015/01/28
- 88/376: Refactor, Ludovic Courtès, 2015/01/28
- 87/376: tests/remote-builds.nix: Test failing build,
Ludovic Courtès <=
- 89/376: build-remote.pl: Be less verbose on failing builds, Ludovic Courtès, 2015/01/28
- 86/376: nix-store --serve: Only monitor stdin during builds, Ludovic Courtès, 2015/01/28
- 77/376: nix-daemon: Less verbosity, Ludovic Courtès, 2015/01/28
- 74/376: nix-daemon: Use a thread instead of SIGPOLL to catch client disconnects, Ludovic Courtès, 2015/01/28
- 99/376: install-nix-from-closure.sh: Install cacert, Ludovic Courtès, 2015/01/28
- 93/376: nix-copy-closure: Implement --gzip via ssh's -C flag, Ludovic Courtès, 2015/01/28
- 91/376: Remove obsolete SSH master connection code, Ludovic Courtès, 2015/01/28
- 100/376: Rename nixPath to __nixPath, Ludovic Courtès, 2015/01/28
- 95/376: Change the default for use-ssh-substituter to ‘true’, Ludovic Courtès, 2015/01/28
- 90/376: Implement nix-copy-closure --from via nix-store --serve, Ludovic Courtès, 2015/01/28