Fix curl command check error output.

This commit is contained in:
jcamiel 2022-03-11 17:21:53 +01:00 committed by Fabrice Reix
parent f08e9b5355
commit 19a79fbec7

View File

@ -134,14 +134,14 @@ def test(hurl_file):
]
if len(actual_commands) != len(expected_commands):
print("Assert error at %s" % (f))
print("curl commands error at %s" % (curl_file))
print("expected: %d commands" % len(expected_commands))
print("actual: %d commands" % len(actual_commands))
sys.exit(1)
for i in range(len(expected_commands)):
if actual_commands[i] != expected_commands[i]:
print("Assert error at %s:%i" % (curl_file, i + 1))
print("curl command error at %s:%i" % (curl_file, i + 1))
print("expected: %s" % expected_commands[i])
print("actual: %s" % actual_commands[i])
sys.exit(1)