Fixed the root path check in the validate_cmakelists script.
Project: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/commit/bf455e26 Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/bf455e26 Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/bf455e26 Branch: refs/heads/trace Commit: bf455e26eb89902731f01928f5eff369a875e5f4 Parents: 8d7284d Author: Zuyu Zhang <[email protected]> Authored: Thu Sep 28 19:36:06 2017 -0500 Committer: Zuyu Zhang <[email protected]> Committed: Thu Sep 28 19:36:06 2017 -0500 ---------------------------------------------------------------------- validate_cmakelists.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/bf455e26/validate_cmakelists.py ---------------------------------------------------------------------- diff --git a/validate_cmakelists.py b/validate_cmakelists.py index 0b2e79d..f5f2f89 100755 --- a/validate_cmakelists.py +++ b/validate_cmakelists.py @@ -469,7 +469,7 @@ def main(cmakelists_to_process): int: The total number of targets that failed validation because of missing or superfluous dependencies. """ - if not os.getcwd().endswith("quickstep"): + if not os.path.isfile("validate_cmakelists.py"): print("WARNING: you don't appear to be running in the root quickstep " "source directory. Don't blame me if something goes wrong.") qs_module_dirs = []
