From 8da00af74e298092a63701a3443277bd6029ab2a Mon Sep 17 00:00:00 2001 From: chaokunyang Date: Wed, 27 May 2020 11:04:08 +0800 Subject: [PATCH] [Streaming ]print streaming error when tests fail (#8594) --- streaming/java/test.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/streaming/java/test.sh b/streaming/java/test.sh index ecf9770a8..5641a271b 100755 --- a/streaming/java/test.sh +++ b/streaming/java/test.sh @@ -37,6 +37,23 @@ fi # exit_code == 2 means there are skipped tests. if [ $exit_code -ne 2 ] && [ $exit_code -ne 0 ] ; then + if [ -d "/tmp/ray_streaming_java_test_output/" ] ; then + echo "all test output" + for f in /tmp/ray_streaming_java_test_output/*; do + if [ -f "$f" ]; then + echo "Cat file $f" + cat "$f" + elif [[ -d $f ]]; then + echo "$f is a directory" + fi + done + fi + for f in /home/travis/build/ray-project/ray/hs_err*log; do + if [ -f "$f" ]; then + echo "Cat file $f" + cat "$f" + fi + done exit $exit_code fi