Changeset 950c58e


Ignore:
Timestamp:
Sep 1, 2023, 11:16:09 AM (9 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
4c0fa03
Parents:
2a301ff
Message:

The invariant flags on the test script were set up incorrectly. They should do as documented now and be on by default now.

Location:
tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/settings.py

    r2a301ff r950c58e  
    141141        all_install  = [Install(o)      for o in list(dict.fromkeys(options.install))]
    142142        archive      = os.path.abspath(os.path.join(original_path, options.archive_errors)) if options.archive_errors else None
    143         invariant    = options.no_invariant
     143        invariant    = options.invariant
    144144        continue_    = options.continue_
    145145        dry_run      = options.dry_run # must be called before tools.config_hash()
  • tests/test.py

    r2a301ff r950c58e  
    114114        parser.add_argument('--install', help='Run all tests based on installed binaries or tree binaries', type=comma_separated(yes_no), default='no')
    115115        parser.add_argument('--continue', help='When multiple specifications are passed (debug/install/arch), sets whether or not to continue if the last specification failed', type=yes_no, default='yes', dest='continue_')
    116         parser.add_argument('--invariant', help='Tell the compiler to check invariants.', action='store_true')
    117         parser.add_argument('--no-invariant', help='Tell the compiler not to check invariants.', action='store_false')
     116        parser.add_argument('--no-invariant', help='Tell the compiler not to check invariants.', action='store_false', dest='invariant')
     117        parser.add_argument('--invariant', help='Tell the compiler to check invariants.', action='store_const', const=True)
    118118        parser.add_argument('--timeout', help='Maximum duration in seconds after a single test is considered to have timed out', type=int, default=180)
    119119        parser.add_argument('--global-timeout', help='Maximum cumulative duration in seconds after the ALL tests are considered to have timed out', type=int, default=7200)
Note: See TracChangeset for help on using the changeset viewer.