[Chapel Merge] fix(mason-test): use relative path for internal ma

Branch: refs/heads/main
Revision: a401ebf
Author: arezaii
Link: fix(mason-test): use relative path for internal mason tests by arezaii · Pull Request #20230 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20230 from arezaii/mason-test-path-fix

fix(mason-test): use relative path for internal mason tests

This PR changes the way mason test constructs paths for
test files that are defined in the tests key of the mason.toml file.
The change is to use a relative path rather than an absolute path if
the test is known to the mason package by being defined in the
tests key of the mason.toml file.

This addresses an issue where the path reported by a failed
internal mason test was absolute, when the expected output would be
relative for internal tests.

TESTING:

  • paratest

Reviewed by @bmcdonald3 - thanks!

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

Modified Files:
M test/mason/masonTestSome/Mason.toml

M test/mason/masonTestSome/mason-test-show.chpl
M test/mason/masonTestSome/mason-test-show.good
M test/mason/masonTestSome/mason-test-show.prediff
M tools/mason/MasonTest.chpl

Compare: https://github.com/chapel-lang/chapel/compare/0085fba89a21...a401ebfd0ce9