1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-07 07:02:53 +03:00

respect DISABLED flag reported by ctest

Reviewed By: simpkins

Differential Revision: D20885314

fbshipit-source-id: 8c3a5ccbfd6630107b421b0d6953f17a93da2412
This commit is contained in:
Zeyi (Rice) Fan
2020-04-07 03:13:51 -07:00
committed by Facebook GitHub Bot
parent b719fbd586
commit 73ded7862d

View File

@@ -537,6 +537,9 @@ if __name__ == "__main__":
machine_suffix = self.build_opts.host_type.as_tuple_string()
for test in data["tests"]:
working_dir = get_property(test, "WORKING_DIRECTORY")
labels = []
if get_property(test, "DISABLED"):
labels.append("disabled")
command = test["command"]
if working_dir:
command = [cmake, "-E", "chdir", working_dir] + command
@@ -546,6 +549,7 @@ if __name__ == "__main__":
"target": "%s-%s-getdeps-%s"
% (self.manifest.name, test["name"], machine_suffix),
"command": command,
"labels": labels,
}
)
return tests