mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
respect DISABLED flag reported by ctest
Reviewed By: simpkins Differential Revision: D20885314 fbshipit-source-id: 8c3a5ccbfd6630107b421b0d6953f17a93da2412
This commit is contained in:
parent
1c982d5258
commit
cf0ca611e9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user