mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 02:19:18 -05:00
CTest: Teach --show-only=json-v1 to filter out not-available tests
Avoid exposing the internal special value that we use to track tests not available in the tested configuration. This also prevents clients from having to do the filtering themselves.
This commit is contained in:
@@ -1039,6 +1039,11 @@ void cmCTestMultiProcessHandler::PrintOutputAsJson()
|
||||
testRun.SetTestProperties(&p);
|
||||
testRun.ComputeArguments();
|
||||
|
||||
// Skip tests not available in this configuration.
|
||||
if (p.Args.size() >= 2 && p.Args[1] == "NOT_AVAILABLE") {
|
||||
continue;
|
||||
}
|
||||
|
||||
Json::Value testInfo = DumpCTestInfo(testRun, p, backtraceGraph);
|
||||
tests.append(testInfo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user