[Chapel Merge] skip exit code test if mason not found, add output

Branch: refs/heads/main
Revision: 1162f53
Author: arezaii
Log Message:

Merge pull request #18550 from arezaii/skip-some-mason-tests

skip exit code test if mason not found, add output for failed cmd

This PR addresses the exit code tests for mason when the mason executable is
not located. This test has caused several nightly tests to fail when the mason
executable was not built during testing.

Additionally, the exit code validation helper is updated to print a message
when it fails.

TESTING:

  • [x] util/start_test test/mason passes all tests when mason present
  • [x] test/mason/mason-external/masonExternalExitCodes skipped if mason missing
  • [x] failure message printed when exit code not as expected

Reviewed by @mppf, thanks!

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

Modified Files:
A test/mason/mason-external/masonExternalRanges/masonExternalExitCodes.skipif

A test/mason/mason-help-scope/masonHelpScope.skipif
A test/mason/mason-test-exit/exitCodeTest.skipif
A test/mason/masonBinaryFound
R test/mason/mason-help-scope/masonHelpScope.skipif
R test/mason/mason-test-exit/exitCodeTest.skipif
M test/mason/MasonTestHelpers.chpl

Compare: https://github.com/chapel-lang/chapel/compare/a3da47a917e5...1162f536cb00