CTest: Fix --show-only=json-v1 output with REQUIRED_FILES property

Fixes: #19629
This commit is contained in:
Brad King
2019-08-22 15:00:38 -04:00
parent 40bbe50e23
commit 5778880d20
3 changed files with 20 additions and 6 deletions
+2 -2
View File
@@ -855,8 +855,8 @@ static Json::Value DumpCTestProperties(
DumpCTestProperty("PROCESSORS", testProperties.Processors));
}
if (!testProperties.RequiredFiles.empty()) {
properties["REQUIRED_FILES"] =
DumpToJsonArray(testProperties.RequiredFiles);
properties.append(DumpCTestProperty(
"REQUIRED_FILES", DumpToJsonArray(testProperties.RequiredFiles)));
}
if (!testProperties.LockedResources.empty()) {
properties.append(DumpCTestProperty(