[Cherokee-commits] rev 796 - in cherokee/trunk
cherokee at cherokee-project.com
cherokee at cherokee-project.com
Sat Jul 7 19:50:55 CEST 2007
Author: alo
Date: 2007-07-07 19:50:55 +0200 (Sat, 07 Jul 2007)
New Revision: 796
Log:
Get the changeset with:
svn diff -r 795:796 svn://svn.cherokee-project.com/
Modified:
cherokee/trunk/ChangeLog
3 +++
cherokee/trunk/qa/help.py
1 +
cherokee/trunk/qa/run-tests.py
6 ++++++
Modified: cherokee/trunk/ChangeLog
===================================================================
--- cherokee/trunk/ChangeLog 2007-07-07 17:20:06 UTC (rev 795)
+++ cherokee/trunk/ChangeLog 2007-07-07 17:50:55 UTC (rev 796)
@@ -1,5 +1,8 @@
2007-07-07 Alvaro Lopez Ortega <alvaro at alobbs.com>
+ * qa/run-tests.py, qa/help.py: Added new parameter -m to allow
+ adding delays between tests.
+
* qa/run-tests.py, qa/help.py (help_print_parameters): Added a
help message and a new parameter -h.
Modified: cherokee/trunk/qa/help.py
===================================================================
--- cherokee/trunk/qa/help.py 2007-07-07 17:20:06 UTC (rev 795)
+++ cherokee/trunk/qa/help.py 2007-07-07 17:50:55 UTC (rev 796)
@@ -15,6 +15,7 @@
-n<NUM> Repetitions
-t<NUM> Number of threads of the server
-p<NUM> Server port
+ -m<FLOAT> Delay between tests (secs)
-d<NUM> Number of pauses
-e<PATH> Path to the binary of the server
Modified: cherokee/trunk/qa/run-tests.py
===================================================================
--- cherokee/trunk/qa/run-tests.py 2007-07-07 17:20:06 UTC (rev 795)
+++ cherokee/trunk/qa/run-tests.py 2007-07-07 17:50:55 UTC (rev 796)
@@ -26,6 +26,7 @@
num = 1
thds = 1
pause = 0
+tpause = 0.0
ssl = False
clean = True
kill = True
@@ -79,6 +80,7 @@
elif p[:2] == '-n': num = int(p[2:])
elif p[:2] == '-t': thds = int(p[2:])
elif p[:2] == '-p': port = int(p[2:])
+ elif p[:2] == '-m': tpause = float(p[2:])
elif p[:2] == '-d': pause = p[2:]
elif p[:2] == '-m': method = p[2:]
elif p[:2] == '-e': server = p[2:]
@@ -311,6 +313,10 @@
print "Success"
obj.Clean()
+ if tpause > 0.0:
+ print "Sleeping %2.2f seconds..\r" % (tpause),
+ sys.stdout.flush()
+ time.sleep (tpause)
if ssl:
port = 443
More information about the Cherokee-commits
mailing list