Commit 3b7b3a79 authored by Denis Bilenko's avatar Denis Bilenko

minor changes in testrunner.py

parent 4169e979
...@@ -271,7 +271,8 @@ def spawn_subprocess(args, options, base_params): ...@@ -271,7 +271,8 @@ def spawn_subprocess(args, options, base_params):
params['id'] = row_id params['id'] = row_id
retcode, output, output_printed = run_subprocess(args, options) retcode, output, output_printed = run_subprocess(args, options)
if len(output) > OUTPUT_LIMIT: if len(output) > OUTPUT_LIMIT:
output = output[:OUTPUT_LIMIT] + '<AbridgedOutputWarning>' warn = '<AbridgedOutputWarning>'
output = output[:OUTPUT_LIMIT - len(warn)] + warn
if retcode: if retcode:
if retcode == 1 and 'test_support.TestSkipped' in output: if retcode == 1 and 'test_support.TestSkipped' in output:
pass pass
...@@ -438,7 +439,7 @@ def get_traceback_stats(output, test): ...@@ -438,7 +439,7 @@ def get_traceback_stats(output, test):
def get_info(output, test): def get_info(output, test):
output = output[:OUTPUT_LIMIT * 2] output = output[:OUTPUT_LIMIT]
traceback_stats, ignored_list = get_traceback_stats(output, test) traceback_stats, ignored_list = get_traceback_stats(output, test)
warning_stats = get_warning_stats(output) warning_stats = get_warning_stats(output)
result = traceback_stats + warning_stats result = traceback_stats + warning_stats
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment