on iko/ghcjs-patch-master help sign in
Fix warning message for `checkPhase` (#835)
commit41d731603f880e217b893a541bdb42b1a9c43e5a authorHamish Mackenzie <Hamish.Mackenzie@iohk.io> dateSat 5 Sep 2020, 13:57 (6 years ago) parentff5ab39
1 file changed+2−2
builder/comp-builder.nix+2−2
builder/comp-builder.nix+2−2
@@ -279,8 +279,6 @@ let
279279 runHook postBuild
280280 '';
281281
282− checkPhase = "notice: Tests are only executed by building the .run sub-derivation of this component.";
283−
284282 # Note: Cabal does *not* copy test executables during the `install` phase.
285283 #
286284 # Note 2: if a package contains multiple libs (lib + sublibs) SETUP register will generate a
@@ -363,6 +361,8 @@ let
363361 runHook postInstall
364362 '' + (lib.optionalString keepSource ''
365363 rm -rf dist
364+ '') + (lib.optionalString (haskellLib.isTest componentId) ''
365+ echo The test ${package.identifier.name}.components.tests.${componentId.cname} was built. To run the test build ${package.identifier.name}.checks.${componentId.cname}.
366366 '');
367367
368368 shellHook = ''