Tests: added USR1 signal test for unit.log.

This commit is contained in:
Andrey Zelenkov
2019-10-23 16:59:53 +03:00
parent 1033cfa3b0
commit 38cfe4cf3d
3 changed files with 101 additions and 37 deletions

View File

@@ -0,0 +1,9 @@
def application(environ, start_response):
content_length = int(environ.get('CONTENT_LENGTH', 0))
body = bytes(environ['wsgi.input'].read(content_length))
environ['wsgi.errors'].write(body)
environ['wsgi.errors'].flush()
start_response('200', [('Content-Length', '0')])
return []