Changeset 950c58e for tests/test.py


Ignore:
Timestamp:
Sep 1, 2023, 11:16:09 AM (10 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.