Skip to content

Comments

Fix error reporting in sub_test to not confuse JUnit parsing script#28425

Merged
DanilaFe merged 2 commits intochapel-lang:mainfrom
DanilaFe:improve-subtest-errors
Feb 19, 2026
Merged

Fix error reporting in sub_test to not confuse JUnit parsing script#28425
DanilaFe merged 2 commits intochapel-lang:mainfrom
DanilaFe:improve-subtest-errors

Conversation

@DanilaFe
Copy link
Contributor

@DanilaFe DanilaFe commented Feb 19, 2026

(re) closes https://github.com/Cray/chapel-private/issues/3597.
Reverts #28420.

'Error matching sub_test' is a specific line that is expected when a sub_test script itself fails. In this instance, it's printed from a sub_test script to indicate that the the test itself failed (as opposed to the script). This is a distinct failure mode, and is handled better by regular logic that looks for Error *. So, change the error to not count as a sub_test failure.

Reviewed by @arifthpe -- thanks!

Testing

  • parsed modified version of originally failing test log with new output.

@DanilaFe DanilaFe requested a review from arifthpe February 19, 2026 20:27
This reverts commit 96e5fa0, reversing
changes made to 4493c23.

Signed-off-by: Danila Fedorin <daniel.fedorin@hpe.com>
'Error matching sub_test' is a specific line that is expected
when a `sub_test` script itself fails. In this instance,
it's printed from a `sub_test` script to indicate that
the the test failed. This is a distinct failure mode,
and is handled better by regular logic that looks
for `Error *`. So, change the error to not count as
a sub_test failure.

Signed-off-by: Danila Fedorin <daniel.fedorin@hpe.com>
@DanilaFe DanilaFe force-pushed the improve-subtest-errors branch from e35dce5 to 14b7436 Compare February 19, 2026 20:28
@DanilaFe DanilaFe merged commit d9795ad into chapel-lang:main Feb 19, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants