Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3b2660

Browse files
authored
Fix the testing script exit code for python test. (tensorflow#3858)
1 parent 769d11d commit c3b2660

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

official/utils/testing/scripts/presubmit.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ py_test() {
5353

5454
py2_test() {
5555
local PY_BINARY=$(which python2)
56-
return $(py_test "${PY_BINARY}")
56+
py_test "$PY_BINARY"
57+
return $?
5758
}
5859

5960
py3_test() {
6061
local PY_BINARY=$(which python3)
61-
return $(py_test "${PY_BINARY}")
62+
py_test "$PY_BINARY"
63+
return $?
6264
}
6365

6466
test_result=0

0 commit comments

Comments
 (0)