Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
Signed-off-by: xufei <[email protected]>
  • Loading branch information
windtalker committed Jun 29, 2022
1 parent dfc24cb commit 67f4a4b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
4 changes: 4 additions & 0 deletions tests/fullstack-test/mpp/issue_2471.test
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ ERROR 1105 (HY000) at line 1: other error for mpp stream: Code: 10007, e.display
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}

=> DBGInvoke __disable_fail_point(exception_in_creating_set_input_stream)

Expand Down
20 changes: 20 additions & 0 deletions tests/fullstack-test/mpp/mpp_fail.test
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ ERROR 1105 (HY000) at line 1: other error for mpp stream: Code: 0, e.displayText
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
=> DBGInvoke __disable_fail_point(exception_during_mpp_non_root_task_run)

## exception during mpp run root task
Expand All @@ -85,6 +89,10 @@ ERROR 1105 (HY000) at line 1: other error for mpp stream: Code: 10007, e.display
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
=> DBGInvoke __disable_fail_point(exception_during_mpp_root_task_run)

## exception during mpp write err to tunnel
Expand All @@ -97,6 +105,10 @@ ERROR 1105 (HY000) at line 1: other error for mpp stream: Code: 0, e.displayText
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
=> DBGInvoke __disable_fail_point(exception_during_mpp_non_root_task_run)
=> DBGInvoke __disable_fail_point(exception_during_mpp_write_err_to_tunnel)

Expand All @@ -108,6 +120,10 @@ ERROR 1105 (HY000) at line 1: other error for mpp stream: Code: 0, e.displayText
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
=> DBGInvoke __disable_fail_point(exception_during_mpp_non_root_task_run)
=> DBGInvoke __disable_fail_point(exception_during_mpp_close_tunnel)

Expand Down Expand Up @@ -146,6 +162,10 @@ ERROR 1105 (HY000) at line 1: other error for mpp stream: Code: 10007, e.display
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
{#LINE}
=> DBGInvoke __disable_fail_point(exception_mpp_hash_build)

# Clean up.
Expand Down
10 changes: 8 additions & 2 deletions tests/run-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,14 @@ def matched(outputs, matches):
b = MySQLCompare.parse_excepted_outputs(matches)
return a == b
else:
if len(outputs) != len(matches):
if len(outputs) > len(matches):
return False
for i in range(0, len(outputs)):
if not compare_line(outputs[i], matches[i]):
return False
for i in range(len(outputs), len(matches)):
if not compare_line("", matches[i]):
return False
return True


Expand All @@ -217,11 +220,14 @@ def matched(outputs, matches, fuzz):
b = parse_table_parts(matches, fuzz)
return a == b
else:
if len(outputs) != len(matches):
if len(outputs) > len(matches):
return False
for i in range(0, len(outputs)):
if not compare_line(outputs[i], matches[i]):
return False
for i in range(len(outputs), len(matches)):
if not compare_line("", matches[i]):
return False
return True


Expand Down

0 comments on commit 67f4a4b

Please sign in to comment.