mirror of
https://github.com/wassname/ray.git
synced 2026-07-04 07:35:11 +08:00
Fix streaming ci (#8159)
This commit is contained in:
@@ -23,9 +23,15 @@ bazel test //streaming/java:all --test_tag_filters="checkstyle" --build_tests_on
|
||||
|
||||
echo "Running streaming tests."
|
||||
java -cp "$ROOT_DIR"/../../bazel-bin/streaming/java/all_streaming_tests_deploy.jar\
|
||||
org.testng.TestNG -d /tmp/ray_streaming_java_test_output "$ROOT_DIR"/testng.xml || exit_code=$?
|
||||
org.testng.TestNG -d /tmp/ray_streaming_java_test_output "$ROOT_DIR"/testng.xml
|
||||
exit_code=$?
|
||||
echo "Streaming TestNG results"
|
||||
cat /tmp/ray_streaming_java_test_output/testng-results.xml
|
||||
if [ -f "/tmp/ray_streaming_java_test_output/testng-results.xml" ] ; then
|
||||
cat /tmp/ray_streaming_java_test_output/testng-results.xml
|
||||
else
|
||||
echo "Test result file doesn't exist"
|
||||
fi
|
||||
|
||||
# exit_code == 2 means there are skipped tests.
|
||||
if [ $exit_code -ne 2 ] && [ $exit_code -ne 0 ] ; then
|
||||
exit $exit_code
|
||||
|
||||
Reference in New Issue
Block a user