Added tailpipe.py and improved redirecting test trace/log output over fifos

This mostly involved futzing around with some of the less intuitive
parts of Unix's named-pipes behavior.

This is a bit important since the tests can quickly generate several
gigabytes of trace output.
This commit is contained in:
Christopher Haster
2022-08-27 16:50:03 -05:00
parent 5279fc6022
commit c9a6e3a95b
5 changed files with 268 additions and 90 deletions
+2 -1
View File
@@ -422,7 +422,8 @@ if __name__ == "__main__":
parser.add_argument('-p', '--pattern', action='append',
help="Regex patterns to search for starting an assert statement. This"
" implicitly includes \"assert\" and \"=>\".")
parser.add_argument('-l', '--limit', default=LIMIT, type=int,
parser.add_argument('-l', '--limit',
default=LIMIT, type=lambda x: int(x, 0),
help="Maximum number of characters to display in strcmp and memcmp.")
sys.exit(main(**{k: v
for k, v in vars(parser.parse_args()).items()