bazel: Log test errors to stderr during checkPhase

Otherwise it's difficult or impossible to retrieve them, particularly
from a hydra build.
This commit is contained in:
Benjamin Staffin 2017-02-27 19:22:37 -05:00
parent df202fdeb8
commit d348b80f31

View File

@ -54,8 +54,8 @@ stdenv.mkDerivation rec {
doCheck = true;
checkPhase = ''
export TEST_TMPDIR=$(pwd)
./output/bazel test examples/cpp:hello-success_test
./output/bazel test examples/java-native/src/test/java/com/example/myproject:hello
./output/bazel test --test_output=errors examples/cpp:hello-success_test
./output/bazel test --test_output=errors examples/java-native/src/test/java/com/example/myproject:hello
'';
installPhase = ''