3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #172365 from sternenseemann/haskell-mk-derivation-stream-test

haskellPackages.mkDerivation: show test outputs as they happen
This commit is contained in:
maralorn 2022-05-21 16:44:49 +02:00 committed by GitHub
commit 62074a54da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -470,7 +470,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
'';