This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Tarantool -- an efficient key/value data store".
The branch master-stable has been updated
via f111b897671313f2db83bd8b74b344b55a199eef (commit)
from 61b4da22841f8ef10190640fa72b510521880d61 (commit)
Summary of changes:
test/lib/test_suite.py | 5 +++++
test/test-run.py | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
commit f111b897671313f2db83bd8b74b344b55a199eef
Author: Konstantin Osipov <[email protected]>
Date: Fri Feb 25 13:19:06 2011 +0300
test-run.py: return a non-zero exit status on failue
Return a non-zero exit status if there are test
failures, even if run with --force. This necessary to
correctly identify a test failure in buildbot run.
diff --git a/test/lib/test_suite.py b/test/lib/test_suite.py
index 6608c64..6a4bec8 100644
--- a/test/lib/test_suite.py
+++ b/test/lib/test_suite.py
@@ -296,4 +296,9 @@ class TestSuite:
if self.args.valgrind and check_valgrind_log(self.ini["valgrind_log"]):
print " Error! There were warnings/errors in valgrind log file:"
print_tail_n(self.ini["valgrind_log"], 20)
+ return 1
+
+ return len(failed_tests)
+
+
diff --git a/test/test-run.py b/test/test-run.py
index 69ecdfa..78bd629 100755
--- a/test/test-run.py
+++ b/test/test-run.py
@@ -147,6 +147,7 @@ def main():
# Change the current working directory to where all test
# collections are supposed to reside.
os.chdir(os.path.dirname(sys.argv[0]))
+ failed_tests = 0
try:
print "Started", " ".join(sys.argv)
@@ -155,14 +156,14 @@ def main():
suites.append(TestSuite(suite_name, options.args))
for suite in suites:
- suite.run_all()
+ failed_tests = suite.run_all()
except RuntimeError as e:
print "\nFatal error: {0}. Execution aborted.".format(e)
return (-1)
finally:
os.chdir(oldcwd)
- return 0
+ return -failed_tests
if __name__ == "__main__":
exit(main())
--
Tarantool -- an efficient key/value data store
_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help : https://help.launchpad.net/ListHelp