Changes in / [0bd5cfb:778452d]


Ignore:
Location:
tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/settings.py

    r0bd5cfb r778452d  
    123123        global output_width
    124124        global timeout
    125         global timeout2gdb
    126125
    127126        arch         = Architecture(options.arch)
     
    135134        output_width = 24
    136135        timeout      = Timeouts(options.timeout, options.global_timeout)
    137         timeout2gdb  = options.timeout_with_gdb
    138136
    139137        # if we distribute, distcc errors will fail tests, use log file for distcc
  • tests/pybin/tools.py

    r0bd5cfb r778452d  
    7575                                        return proc.returncode, out.decode("utf-8") if out else None
    7676                                except subprocess.TimeoutExpired:
    77                                         if settings.timeout2gdb:
    78                                                 print("Process {} timeout".format(proc.pid))
    79                                                 proc.communicate()
    80                                                 return 124, str(None)
    81                                         else:
    82                                                 proc.send_signal(signal.SIGABRT)
    83                                                 proc.communicate()
    84                                                 return 124, str(None)
     77                                        proc.send_signal(signal.SIGABRT)
     78                                        proc.communicate()
     79                                        return 124, str(None)
    8580
    8681        except Exception as ex:
  • tests/test.py

    r0bd5cfb r778452d  
    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")
    9493        parser.add_argument('--dry-run', help='Don\'t run the tests, only output the commands', action='store_true')
    9594        parser.add_argument('--list', help='List all test available', action='store_true')
     
    193192        rm(exe_file)
    194193
    195         print("HERE")
    196 
    197194        return retcode, error, [comp_dur.duration, run_dur.duration if run_dur else None]
    198195
Note: See TracChangeset for help on using the changeset viewer.