Author: ludo
Date: Thu Jul 22 13:25:28 2010
New Revision: 22708
URL: https://svn.nixos.org/websvn/nix/?rev=22708&sc=1
Log:
cpio: Add failure hook.
Modified:
hydra-config/gnu/trunk/cpio/release.nix
Modified: hydra-config/gnu/trunk/cpio/release.nix
==============================================================================
--- hydra-config/gnu/trunk/cpio/release.nix Thu Jul 22 13:18:07 2010
(r22707)
+++ hydra-config/gnu/trunk/cpio/release.nix Thu Jul 22 13:25:28 2010
(r22708)
@@ -19,8 +19,17 @@
let
pkgs = import nixpkgs {};
- buildInputsFrom = pkgs: with pkgs; [
- ];
+ buildInputsFrom = pkgs: [];
+
+ failureHook =
+ '' if [ -f tests/testsuite.log ]
+ then
+ echo
+ echo "Test suite failed, dumping \`testsuite.log'."
+ echo
+ cat tests/testsuite.log
+ fi
+ '';
jobs = rec {
@@ -69,6 +78,7 @@
name = "cpio" ;
src = tarball;
buildInputs = buildInputsFrom pkgs;
+ inherit failureHook;
};
};
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits