aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-02 23:53:16 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-11 11:08:27 +0000
commit8646bd00862cc63401aec791d20637fcd68245fe (patch)
tree5aa3c28c19b030525077dc3484c9b310efe94526 /tests
parentconsole.py: add tab completion (diff)
downloadmonero-8646bd00862cc63401aec791d20637fcd68245fe.tar.xz
functional_tests: exit with 1 if any test fails
Diffstat (limited to '')
-rwxr-xr-xtests/functional_tests/functional_tests_rpc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/functional_tests/functional_tests_rpc.py b/tests/functional_tests/functional_tests_rpc.py
index f2fef7e95..83b75a088 100755
--- a/tests/functional_tests/functional_tests_rpc.py
+++ b/tests/functional_tests/functional_tests_rpc.py
@@ -133,3 +133,5 @@ if len(FAIL) == 0:
print('Done, ' + str(len(PASS)) + '/' + str(len(tests)) + ' tests passed')
else:
print('Done, ' + str(len(FAIL)) + '/' + str(len(tests)) + ' tests failed: ' + string.join(FAIL, ', '))
+
+sys.exit(0 if len(FAIL) == 0 else 1)