Changeset 3045


Ignore:
Timestamp:
Sep 26, 2010 12:18:36 PM (11 years ago)
Author:
wehart
Message:

Merged revisions 3005-3044 via svnmerge from
https://software.sandia.gov/svn/public/coopr/coopr.misc/trunk

........

r3040 | wehart | 2010-09-23 20:19:59 -0500 (Thu, 23 Sep 2010) | 3 lines


Changing default semantics of '--cat'. Now, the default behavior is to execute with
the 'smoke' category. The user can specify all tests with '--cat=all'.

........

r3044 | wehart | 2010-09-26 00:11:14 -0500 (Sun, 26 Sep 2010) | 3 lines


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

........

Location:
coopr.misc/stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • coopr.misc/stable

  • coopr.misc/stable/coopr/misc/runtests.py

    r2924 r3045  
    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()
     48    if _options.all_cats is True:
     49        _options.cats = []
     50    elif len(_options.cats) == 0:
     51        _options.cats = ['smoke']
     52    elif 'all' in _options.cats:
     53        _options.cats = []
    4354    if len(_options.cats) > 0:
    4455        os.environ['PYUTILIB_UNITTEST_CATEGORIES'] = ",".join(_options.cats)
Note: See TracChangeset for help on using the changeset viewer.