diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-02 23:53:16 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-11 11:08:27 +0000 |
commit | 8646bd00862cc63401aec791d20637fcd68245fe (patch) | |
tree | 5aa3c28c19b030525077dc3484c9b310efe94526 /tests/functional_tests/functional_tests_rpc.py | |
parent | console.py: add tab completion (diff) | |
download | monero-8646bd00862cc63401aec791d20637fcd68245fe.tar.xz |
functional_tests: exit with 1 if any test fails
Diffstat (limited to 'tests/functional_tests/functional_tests_rpc.py')
-rwxr-xr-x | tests/functional_tests/functional_tests_rpc.py | 2 |
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) |