Changeset 829
- Timestamp:
- 07/14/07 21:17:08 (1 year ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/qa/help.py (modified) (1 diff)
- cherokee/trunk/qa/run-tests.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r828 r829 1 1 2007-07-14 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 2 3 * qa/run-tests.py, qa/help.py: Depending on the machine and 4 environment, ten additional seconds to start the server might not 5 be enough. This change adds a new parameter -r that allows to 6 specify how long the test runner should wait before running the 7 first one. Eg: CHEROKEE_TRACE="all" ./run-tests.py -v -c -r50 8 3 9 * qa/run-tests.py: If the server runs with Valgrind, wait 10 more 4 10 seconds to start the tests. There were many occasions in which the cherokee/trunk/qa/help.py
r796 r829 16 16 -t<NUM> Number of threads of the server 17 17 -p<NUM> Server port 18 -r<NUM> Starting delay (secs) 18 19 -m<FLOAT> Delay between tests (secs) 19 20 cherokee/trunk/qa/run-tests.py
r828 r829 27 27 thds = 1 28 28 pause = 0 29 delay = 0 29 30 tpause = 0.0 30 31 ssl = False … … 42 43 43 44 server = CHEROKEE_PATH 44 delay = SERVER_DELAY45 45 46 46 # Make the DocumentRoot directory … … 82 82 elif p[:2] == '-t': thds = int(p[2:]) 83 83 elif p[:2] == '-p': port = int(p[2:]) 84 elif p[:2] == '-r': delay = int(p[2:]) 84 85 elif p[:2] == '-m': tpause = float(p[2:]) 85 86 elif p[:2] == '-d': pause = p[2:] … … 237 238 print 238 239 239 if valgrind != None:240 delay += 10241 242 240 for s in range(delay): 243 sys.stdout.write ("Tests will start in %d secs\r" % ( delay - s - 1))241 sys.stdout.write ("Tests will start in %d secs\r" % (SERVER_DELAY + delay - s - 1)) 244 242 sys.stdout.flush() 245 243 time.sleep(1)