mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 20:12:09 +03:00
Fix curl command check error output.
This commit is contained in:
parent
f08e9b5355
commit
19a79fbec7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user