[asterisk-commits] russell: testsuite/asterisk/trunk r156 - /asterisk/trunk/runtests.py
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 29 01:39:19 CDT 2010
Author: russell
Date: Mon Mar 29 01:39:15 2010
New Revision: 156
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=156
Log:
fix test time tracking
Modified:
asterisk/trunk/runtests.py
Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=156&r1=155&r2=156
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Mon Mar 29 01:39:15 2010
@@ -208,15 +208,14 @@
start_time = time.time()
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
- t.time = time.time() - start_time
- self.total_time += t.time
-
t.stdout = ""
for line in p.stdout:
print line
t.stdout += line
p.wait()
t.passed = p.returncode == 0
+ t.time = time.time() - start_time
+ self.total_time += t.time
def write_results_xml(self, fn, stdout=False):
try:
More information about the asterisk-commits
mailing list