Merge pull request #62041 from azat/clickhouse-test-no-reference-fix

Fix clickhouse-test in case of missing .reference file
This commit is contained in:
Alexey Milovidov 2024-04-27 14:55:54 +00:00 committed by GitHub
commit f6d443c927
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1646,8 +1646,8 @@ class TestCase:
client_options = self.add_random_settings(client_options)
if not is_valid_utf_8(self.case_file) or not is_valid_utf_8(
self.reference_file
if not is_valid_utf_8(self.case_file) or (
self.reference_file and not is_valid_utf_8(self.reference_file)
):
proc, stdout, stderr, debug_log, total_time = self.run_single_test(
server_logs_level, client_options