mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
get detailed error instead of unknown result
This commit is contained in:
parent
7a4c3b9741
commit
62fc5bb3eb
@ -1047,12 +1047,13 @@ class TestCase:
|
||||
self.reference_file,
|
||||
self.stdout_file,
|
||||
],
|
||||
encoding="latin-1",
|
||||
stdout=PIPE,
|
||||
universal_newlines=True,
|
||||
).communicate()[0]
|
||||
if diff.startswith("Binary files "):
|
||||
diff += "Content of stdout:\n===================\n"
|
||||
file = open(self.stdout_file, "r")
|
||||
file = open(self.stdout_file, "rb")
|
||||
diff += str(file.read())
|
||||
file.close()
|
||||
diff += "==================="
|
||||
|
Loading…
Reference in New Issue
Block a user