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 <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2014-08-01 05:45:14 +02:00
parent 2c1d04a563
commit 31e77f5096
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -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";