[asterisk-scf-commits] asterisk-scf/integration/testsuite.git branch "review" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Jun 1 22:08:43 CDT 2011
branch "review" has been updated
via ce17d4aee11e861731e854df2c968faa67ba891f (commit)
from 7f774d3270d3944c4cad71bb3652ad21723763eb (commit)
Summary of changes:
testsuite.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit ce17d4aee11e861731e854df2c968faa67ba891f
Author: Darren Sessions <dsessions at digium.com>
Date: Wed Jun 1 22:08:40 2011 -0500
minor tweaks
diff --git a/testsuite.py b/testsuite.py
index 96f6e89..09f0d64 100755
--- a/testsuite.py
+++ b/testsuite.py
@@ -91,7 +91,7 @@ class __main__:
for plugin in timeLine:
timerStart = datetime.datetime.now()
runResults = plugins().execute(plugin, pluginData[plugin]['module'], timeLine[plugin], testData['path'], self.globalVars)
- timerStop = datetime.datetime.now()
+ timerDelta = datetime.datetime.now() - timerStart
if not 'shutdownList' in runResults:
if not 'shutdownExempt' in runResults:
if 'testsuite_remote_host' in timeLine[plugin]:
@@ -120,7 +120,7 @@ class __main__:
break
print >> sys.stderr, ' |- Test "' + testName + '" - PASSED!'
- subTestElement = setProperty(subTestElement, 'time', (timerStop - timerStart))
+ subTestElement = xml().setProperty(subTestElement, 'time', '%s.%s' % (timerDelta.seconds, timerDelta.microseconds))
else:
print >> sys.stderr, ' |- Test "' + testName + '" - FAILED!\n \- No test data defined!'
subTestElement, errorMsgs = xml().addFailure(subTestElement, ['No test data defined!'])
-----------------------------------------------------------------------
--
asterisk-scf/integration/testsuite.git
More information about the asterisk-scf-commits
mailing list