Changes in tests/pybin/tools.py [0f5da65:136f86b]
- File:
-
- 1 edited
-
tests/pybin/tools.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/tools.py
r0f5da65 r136f86b 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: … … 322 327 raise argparse.ArgumentTypeError(msg) 323 328 329 # Convert a function that converts a string to one that converts comma separated string. 330 def comma_separated(elements): 331 return lambda string: [elements(part) for part in string.split(',')] 332 324 333 def fancy_print(text): 325 334 column = which('column')
Note:
See TracChangeset
for help on using the changeset viewer.