Skip to contentSkip to conversation

master - NIX: Mark builds with failed tests as such.

PATCH Petr Rockai 1 participant 1 message Feb 5, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b6884f8a87ee442b88d7c4b5dfb7af4a10c26670
Commit:        b6884f8a87ee442b88d7c4b5dfb7af4a10c26670
Parent:        8b80e949ea320d202f5ccade2e79a5a3c5937368
Author:        Petr Rockai <[email protected]>
AuthorDate:    Sun Sep 14 11:12:12 2014 +0200
Committer:     Petr Rockai <[email protected]>
CommitterDate: Thu Feb 5 13:47:20 2015 +0100

NIX: Mark builds with failed tests as such.

---
 nix/default.nix |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
nix/default.nix +2 -0
index d023f6e..445b0a7 100644
@@ -21,6 +21,8 @@ let
          cat $i/test-results/list >> $out/test-results/list
          cp $i/test-results'/'*.txt $out/test-results/ || true
        done
+       mkdir -p $out/nix-support
+       grep '\<failed\>' $out/test-results/list && touch $out/nix-support/failed
      '';
 
      buildInputs = map (x: runTest (args // { flavour = x; }))