Changeset 3044


Ignore:
Timestamp:
Sep 26, 2010 1:11:14 AM (11 years ago)
Author:
wehart
Message:

Adding a '--all' flag to specify that all tests
are executed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.misc/trunk/coopr/misc/runtests.py

    r3040 r3044  
    2727        default=[],
    2828        help='Specify test categories.')
     29    parser.add_option('--all',
     30        action='store_true',
     31        dest='all_cats',
     32        default=False,
     33        help='All tests are executed.')
    2934    parser.add_option('-v','--verbose',
    3035        action='store_true',
     
    4146
    4247    print "Running tests in directory",os.getcwd()
    43     if len(_options.cats) == 0:
     48    if _options.all_cats is True:
     49        _options.cats = []
     50    elif len(_options.cats) == 0:
    4451        _options.cats = ['smoke']
    4552    elif 'all' in _options.cats:
Note: See TracChangeset for help on using the changeset viewer.