Prior to this patch, tests could at runtime call sys.exit(77)
and the test would later be considered by CTest as skipped.
But the BaseTest
didn't know about a special return code to signal "skipping" which resulted in two problems:
BaseTest
which results in wrong debug output. (The failed status is only later turned into "notrun" by CTest)This MR introduces a variable SKIP_RETURN_CODE
which can be imported as from GaudiTesting import SKIP_RETURN_CODE
and makes the BaseTest
correctly handle tests which return this special code.
A test is added to GaudiExamples
showcasing the usage and the test itself asserts that the validator of skipped tests isn't called.