From 31e77f5096fe8bce81d4d520cee9ccac9b81d7f0 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 1 Aug 2014 05:45:14 +0200 Subject: [PATCH] i3: Abort build if test suite is failing. The exit code of the i3 test runner is always 0, regardless of whether tests were failing or not, so let's quickly grep for a "not ok" in the test logfile and if it occurs, the whole build is failing now. Signed-off-by: aszlig --- pkgs/applications/window-managers/i3/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/window-managers/i3/default.nix b/pkgs/applications/window-managers/i3/default.nix index 56b11df72e2..38e6b63dd5e 100644 --- a/pkgs/applications/window-managers/i3/default.nix +++ b/pkgs/applications/window-managers/i3/default.nix @@ -28,6 +28,7 @@ stdenv.mkDerivation rec { checkPhase = '' ln -sf "${xdummy}/bin/xdummy" testcases/Xdummy (cd testcases && perl complete-run.pl) + ! grep -q '^not ok' testcases/latest/complete-run.log ''; configurePhase = "makeFlags=PREFIX=$out";