Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: databend-test print more stderr #17288

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/databend-test
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def run_tests_array(all_tests_with_params):
if os.path.isfile(stdout_file):
status += ", result:\n\n"
status += '\n'.join(
open(stdout_file).read().split('\n')[:100])
open(stdout_file).read().split('\n')[:300])
status += '\n'

elif stderr:
Expand All @@ -336,15 +336,15 @@ def run_tests_array(all_tests_with_params):
status += MSG_FAIL
status += print_test_time(total_time)
status += " - having stderror:\n{}\n".format(
'\n'.join(stderr.split('\n')[:100]))
'\n'.join(stderr.split('\n')[:300]))
elif 'Exception' in stdout:
failures += 1
failure_cases.append(case_file_full_path)
failures_chain += 1
status += MSG_FAIL
status += print_test_time(total_time)
status += " - having exception:\n{}\n".format(
'\n'.join(stdout.split('\n')[:100]))
'\n'.join(stdout.split('\n')[:300]))
elif not os.path.isfile(result_file):
status += MSG_UNKNOWN
status += print_test_time(total_time)
Expand Down
Loading