[Xfce4-commits] <midori:master> Track failed tests in the new wine-friendly code
Christian Dywan
noreply at xfce.org
Sun Nov 25 12:06:03 CET 2012
Updating branch refs/heads/master
to 16877fa2cdb8674204d608b2198f4a82f263b237 (commit)
from c0ba85f04bd784a7c68225fd22c464092bf1501d (commit)
commit 16877fa2cdb8674204d608b2198f4a82f263b237
Author: Christian Dywan <christian at twotoasts.de>
Date: Fri Nov 23 21:47:39 2012 +0100
Track failed tests in the new wine-friendly code
The exit code depends on the number.
wscript | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/wscript b/wscript
index c2ed5cd..362cc99 100644
--- a/wscript
+++ b/wscript
@@ -592,9 +592,12 @@ def shutdown ():
pp = Utils.pproc.Popen (args, cwd=Build.bld.env['PREFIX'] + os.sep + 'bin')
(out, err) = pp.communicate ()
test.unit_test_results[label] = int (pp.returncode == 0)
+ if not test.unit_test_results[label]:
+ test.num_tests_failed += 1
except OSError:
msg = sys.exc_info()[1] # Python 2/3 compatibility
Utils.pprint ('RED', '%s: %s' % (args, msg))
+ test.num_tests_err += 1
except KeyboardInterrupt:
pass
else:
More information about the Xfce4-commits
mailing list