ctest: Misleading error message when omitting version object from resource allocation JSON file
If a test resource allocation JSON file is missing the mandatory version
object, the error message ctest
returns is:
Could not read resource spec file: path/to/resallocs.json
The file does exist at the specified location, it's just that it is missing the version
object. The error message should highlight the missing version details, not state that the file couldn't be read.
The same error occurs whether using the --resource-spec-file
command line option or the RESOURCE_SPEC_FILE
argument to ctest_test()
.