about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/generic-builder.nix
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-05-10 12:03:55 +0200
committersternenseemann <sternenseemann@systemli.org>2022-05-10 12:03:55 +0200
commit8f5c420450bd431c09d92d009fff5bf0e024c12a (patch)
treefa55423286d9bdf53edc27eb251af4c3d457a554 /pkgs/development/haskell-modules/generic-builder.nix
parentc777cdf5c564015d5f63b09cc93bef4178b19b01 (diff)
downloadnixlib-8f5c420450bd431c09d92d009fff5bf0e024c12a.tar
nixlib-8f5c420450bd431c09d92d009fff5bf0e024c12a.tar.gz
nixlib-8f5c420450bd431c09d92d009fff5bf0e024c12a.tar.bz2
nixlib-8f5c420450bd431c09d92d009fff5bf0e024c12a.tar.lz
nixlib-8f5c420450bd431c09d92d009fff5bf0e024c12a.tar.xz
nixlib-8f5c420450bd431c09d92d009fff5bf0e024c12a.tar.zst
nixlib-8f5c420450bd431c09d92d009fff5bf0e024c12a.zip
haskellPackages.mkDerivation: show test outputs as they happen
Currently, the test output is only printed if the test suite fails. If a
test suite gets stuck, however, and is hit with a timeout by Hydra, it
can help to have the log available when diagnosing the issue.
Diffstat (limited to 'pkgs/development/haskell-modules/generic-builder.nix')
-rw-r--r--pkgs/development/haskell-modules/generic-builder.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix
index bc43c39676c8..af4d31ab2a89 100644
--- a/pkgs/development/haskell-modules/generic-builder.nix
+++ b/pkgs/development/haskell-modules/generic-builder.nix
@@ -469,7 +469,10 @@ stdenv.mkDerivation ({
   # `--test-option`, so Cabal passes it to the underlying test suite binary.
   checkPhase = ''
     runHook preCheck
-    checkFlagsArray+=(${lib.escapeShellArgs (builtins.map (opt: "--test-option=${opt}") testFlags)})
+    checkFlagsArray+=(
+      "--show-details=streaming"
+      ${lib.escapeShellArgs (builtins.map (opt: "--test-option=${opt}") testFlags)}
+    )
     ${setupCommand} test ${testTarget} $checkFlags ''${checkFlagsArray:+"''${checkFlagsArray[@]}"}
     runHook postCheck
   '';