Fix bug in java/test.sh (#7952)

Co-authored-by: Mehrdad <noreply@github.com>
This commit is contained in:
mehrdadnandMehrdad authored and GitHub committed 2020-04-11 23:56:14 -07:00
1 parent 07002825aa
commit 3061067039
1 file changed
+2 -1
+2 -1
View File
@@ -8,7 +8,8 @@ set -x
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
run_testng() {
$@ || exit_code=$?
$@
local exit_code=$?
# exit_code == 2 means there are skipped tests.
if [ $exit_code -ne 2 ] && [ $exit_code -ne 0 ] ; then
exit $exit_code