Index: build/check_return_value.py |
diff --git a/tools/telemetry/find_dependencies b/build/check_return_value.py |
similarity index 50% |
copy from tools/telemetry/find_dependencies |
copy to build/check_return_value.py |
index 131f24dd62a6d328a04482a8fe87f98cf52d8a65..6f0daec3a751bdf4f043274f1196193929b5dd4b 100755 |
--- a/tools/telemetry/find_dependencies |
+++ b/build/check_return_value.py |
@@ -3,8 +3,13 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-from telemetry.util import find_dependencies |
+"""This program wraps an arbitrary command and prints "1" if the command ran |
+successfully.""" |
+import subprocess |
+import sys |
-if __name__ == '__main__': |
- find_dependencies.FindDependenciesCommand.main() |
+if not subprocess.call(sys.argv[1:]): |
+ print 1 |
+else: |
+ print 0 |