functional_tests: exit with 1 if any test fails

pull/200/head
moneromooo-monero 5 years ago
parent 6fd8834d9d
commit 8646bd0086
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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)

Loading…
Cancel
Save