commit | b787bc8082c76eabab26501eb7071b2869ac109b | [log] [tgz] |
---|---|---|
author | Tamas Kenez <tamaskenez@google.com> | Tue Jun 27 11:32:20 2017 +0200 |
committer | Tamas Kenez <tamaskenez@google.com> | Tue Jun 27 11:32:20 2017 +0200 |
tree | b1fd37e909ffca982be9cb822e63dadf8b39ca14 | |
parent | 415b85120c55f722afd9da5f0c432b6714cde585 [diff] |
Fix gradle.py to only raise if there is actually a problem R=ricow@google.com Bug: Change-Id: I744f72338e7f3de2b24f8e9cc7b6e32ab497b037
diff --git a/tools/gradle.py b/tools/gradle.py index 3a309ab..488dc87 100755 --- a/tools/gradle.py +++ b/tools/gradle.py
@@ -40,7 +40,7 @@ utils.PrintCmd(cmd) with utils.ChangedWorkingDirectory(utils.REPO_ROOT): return_value = subprocess.call(cmd) - if throw_on_failure: + if throw_on_failure and return_value != 0: raise return return_value