Changeset 1609
- Timestamp:
- 07/07/08 08:56:01 (3 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/qa/run-tests.py (modified) (6 diffs)
- cherokee/trunk/qa/util.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1608 r1609 1 2008-07-06 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * qa/run-tests.py: Now it prints the number of tests that are 4 skipped during the whole execution. 5 6 * qa/util.py: Aesthetically improvement. The result value of each 7 QA test is printed with a different color, whenever the terminal 8 type is know to support ANSI escape codes. 9 1 10 2008-07-04 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 11 cherokee/trunk/qa/run-tests.py
r1594 r1609 57 57 58 58 # Make the files list 59 files = [] 60 param = [] 59 files = [] 60 param = [] 61 skipped = [] 61 62 if len(sys.argv) > 1: 62 63 argv = sys.argv[1:] … … 283 284 its_clean = True 284 285 286 print 287 285 288 # Clean up 286 289 if clean: … … 291 294 print_key ("Config", cfg_file) 292 295 print 296 297 # Skipped tests 298 if not quiet: 299 print "Skipped tests: %d" % (len(skipped)) 293 300 294 301 # Kill the server … … 341 348 if not go_ahead: 342 349 if not quiet: 343 print "Skipped" 350 print MESSAGE_SKIPPED 351 if not obj in skipped: 352 skipped.append(obj) 344 353 continue 345 354 … … 359 368 if ret is not 0: 360 369 if not its_clean: 361 print "Failed"370 print MESSAGE_FAILED 362 371 print obj 363 372 clean_up() 364 373 sys.exit(1) 365 374 elif not quiet: 366 print "Success"375 print MESSAGE_SUCCESS 367 376 obj.Clean() 368 377 … … 373 382 time.sleep (tpause) 374 383 384 375 385 if ssl: 376 386 port = 443 cherokee/trunk/qa/util.py
r1600 r1609 1 1 import os, sys, time, random 2 2 from conf import * 3 4 term = os.getenv("TERM") 5 if 'color' in term: 6 MESSAGE_SUCCESS = '\033[0;48;36m Success \033[0m' # Blue 7 MESSAGE_FAILED = '\033[0;48;31m Failed \033[0m' # Red 8 MESSAGE_SKIPPED = '\033[0;48;33m Skipped \033[0m' # Yellow 9 else: 10 MESSAGE_SUCCESS = 'Success' 11 MESSAGE_FAILED = ' Failed' 12 MESSAGE_SKIPPED = 'Skipped' 13 3 14 4 15 def count_down (msg, nsecs, nl=True):