Changeset d658183 for tests/pybin
- Timestamp:
- Mar 19, 2020, 2:01:28 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 0bd5cfb
- Parents:
- bbdb0c6
- Location:
- tests/pybin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/settings.py
rbbdb0c6 rd658183 123 123 global output_width 124 124 global timeout 125 global timeout2gdb 125 126 126 127 arch = Architecture(options.arch) … … 134 135 output_width = 24 135 136 timeout = Timeouts(options.timeout, options.global_timeout) 137 timeout2gdb = options.timeout_with_gdb 136 138 137 139 # if we distribute, distcc errors will fail tests, use log file for distcc -
tests/pybin/tools.py
rbbdb0c6 rd658183 75 75 return proc.returncode, out.decode("utf-8") if out else None 76 76 except subprocess.TimeoutExpired: 77 proc.send_signal(signal.SIGABRT) 78 proc.communicate() 79 return 124, str(None) 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) 80 85 81 86 except Exception as ex:
Note: See TracChangeset
for help on using the changeset viewer.