[Chapel Merge] fix(mason-test): suppress hint when --show used

Branch: refs/heads/main
Revision: 63ff0a6
Author: arezaii
Link: fix(mason-test): suppress hint when --show used by arezaii · Pull Request #20088 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20088 from arezaii/mason-hide-hint

fix(mason-test): suppress hint when --show used

This PR makes a small fix to the output of mason test when
any test fails to compile. In the case that the user entered
mason test --show, we will no longer add the hint to try
running with the --show flag.

Also added are two tests to lock in the behavior of providing
the hint or not.

TESTING:

  • paratest

reviewed by @bmcdonald3 - thanks!

Signed-off-by: arezaii ahmad.rezaii@hpe.com

Modified Files:
A test/mason/masonTestSome/CLEANFILES

A test/mason/masonTestSome/mason-test-noShow.chpl
A test/mason/masonTestSome/mason-test-noShow.good
A test/mason/masonTestSome/mason-test-noShow.prediff
A test/mason/masonTestSome/mason-test-show.chpl
A test/mason/masonTestSome/mason-test-show.good
A test/mason/masonTestSome/mason-test-show.prediff
A test/mason/masonTestSome/target.notest
A test/mason/masonTestSome/test/compilererror.chpl
M tools/mason/MasonTest.chpl

Compare: https://github.com/chapel-lang/chapel/compare/195a37574cd5...63ff0a63a5b5