Changeset d658183 for tests/test.py


Ignore:
Timestamp:
Mar 19, 2020, 2:01:28 PM (20 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
0bd5cfb
Parents:
bbdb0c6
Message:

added test option to print process id instead of killing it to allow attaching with gdb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/test.py

    rbbdb0c6 rd658183  
    9191        parser.add_argument('--timeout', help='Maximum duration in seconds after a single test is considered to have timed out', type=int, default=60)
    9292        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)
     93        parser.add_argument('--timeout-with-gdb', help='Instead of killing the command when it times out, orphan it and print process id to allow gdb to attach', type=yes_no, default="no")
    9394        parser.add_argument('--dry-run', help='Don\'t run the tests, only output the commands', action='store_true')
    9495        parser.add_argument('--list', help='List all test available', action='store_true')
     
    192193        rm(exe_file)
    193194
     195        print("HERE")
     196
    194197        return retcode, error, [comp_dur.duration, run_dur.duration if run_dur else None]
    195198
Note: See TracChangeset for help on using the changeset viewer.