Changeset 829

Show
Ignore:
Timestamp:
07/14/07 21:17:08 (1 year ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r828 r829  
    112007-07-14  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
    22 
     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         
    39        * qa/run-tests.py: If the server runs with Valgrind, wait 10 more 
    410        seconds to start the tests. There were many occasions in which the 
  • cherokee/trunk/qa/help.py

    r796 r829  
    1616  -t<NUM>       Number of threads of the server 
    1717  -p<NUM>       Server port 
     18  -r<NUM>       Starting delay (secs) 
    1819  -m<FLOAT>     Delay between tests (secs) 
    1920 
  • cherokee/trunk/qa/run-tests.py

    r828 r829  
    2727thds     = 1 
    2828pause    = 0 
     29delay    = 0 
    2930tpause   = 0.0 
    3031ssl      = False 
     
    4243 
    4344server   = CHEROKEE_PATH 
    44 delay    = SERVER_DELAY 
    4545 
    4646# Make the DocumentRoot directory 
     
    8282    elif p[:2] == '-t': thds     = int(p[2:]) 
    8383    elif p[:2] == '-p': port     = int(p[2:]) 
     84    elif p[:2] == '-r': delay    = int(p[2:]) 
    8485    elif p[:2] == '-m': tpause   = float(p[2:]) 
    8586    elif p[:2] == '-d': pause    = p[2:] 
     
    237238        print 
    238239 
    239         if valgrind != None: 
    240             delay += 10 
    241  
    242240        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)) 
    244242           sys.stdout.flush() 
    245243           time.sleep(1)