Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
c3b26603
Unverified
Commit
c3b26603
authored
Apr 03, 2018
by
Qianli Scott Zhu
Committed by
GitHub
Apr 03, 2018
Browse files
Fix the testing script exit code for python test. (#3858)
parent
769d11d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
official/utils/testing/scripts/presubmit.sh
official/utils/testing/scripts/presubmit.sh
+4
-2
No files found.
official/utils/testing/scripts/presubmit.sh
View file @
c3b26603
...
@@ -53,12 +53,14 @@ py_test() {
...
@@ -53,12 +53,14 @@ py_test() {
py2_test
()
{
py2_test
()
{
local
PY_BINARY
=
$(
which python2
)
local
PY_BINARY
=
$(
which python2
)
return
$(
py_test
"
${
PY_BINARY
}
"
)
py_test
"
$PY_BINARY
"
return
$?
}
}
py3_test
()
{
py3_test
()
{
local
PY_BINARY
=
$(
which python3
)
local
PY_BINARY
=
$(
which python3
)
return
$(
py_test
"
${
PY_BINARY
}
"
)
py_test
"
$PY_BINARY
"
return
$?
}
}
test_result
=
0
test_result
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment