This would only happen if the test failed (but the message would be
incorrect as 'e' the exception to be stringified doesn't exist.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15611
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit
efdbf0511e0a89f865210170001fbebf17a45278)
try:
msg = "snglechunksnglechunksnglechunksnglechunksnglechunk"
resp = self.check_output("%s -d11 -U%% -I%s --rsize 49 --uri %s" % (COMMAND, os.getenv("SERVER_IP", "localhost"), msg))
- self.fail(str(e))
+ self.fail("unexpected success")
except BlackboxProcessError as e:
if "http_read_chunk: size 50 exceeds max content len 49 skipping body" not in e.stderr.decode('utf-8'):
self.fail(str(e))
msg = "012345678" # 9 bytes
# limit response to 8 bytes
resp = self.check_output("%s -d11 -U%% -I%s --rsize 8 --uri %s" % (COMMAND, os.getenv("SERVER_IP", "localhost"), msg))
- self.fail(str(e))
+ self.fail("unexpected success")
except BlackboxProcessError as e:
if "unexpected 0 len response" not in e.stdout.decode('utf-8'):
self.fail(str(e))