Changeset 10328

Show
Ignore:
Timestamp:
08/27/08 20:55:18 (3 months ago)
Author:
steve-e
Message:

Fix option handling of the unittest runner.

Location:
trunk/test
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/test/lib/__init__.py

    r10320 r10328  
    44 
    55use_x = True 
    6 opts, args = getopt.getopt(sys.argv[1:], 'n', ['no-x']) 
     6shortargs = 'hnv:' 
     7longargs = 'help no-x verbose=' 
     8opts, args = getopt.getopt(sys.argv[1:], shortargs, longargs.split()) 
    79for o, a in opts: 
    810        if o in ('-n', '--no-x'): 
  • trunk/test/runtests.py

    r10320 r10328  
    2626                except: 
    2727                        print 'verbose must be a number >= 0' 
     28                        sys.exit(2) 
    2829 
    2930# new test modules need to be added manually