Make the auto-pusher recover easier.
authormachenbach <machenbach@chromium.org>
Fri, 27 Feb 2015 22:23:25 +0000 (14:23 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 27 Feb 2015 22:23:33 +0000 (22:23 +0000)
commit002b1ddb0e1aa5172b644f9d9b29caa05e830650
treeded84898dd0ef88ac1621223d0f62e16df7728d4
parent4b830859b7a529fe05e8ff807e4090c616d26c94
Make the auto-pusher recover easier.

The auto-push script is only used in an automated fashion
on bots. It doesn't need to check for a clean git
environment as it has a special workdir checkout.

If the release creation fails for whatever reason (e.g.
a master restart happens in the middle), the workdir
checkout might be left dirty. Any new attempt of the auto
pusher then bails out.

After this change it will call the create_release script
in any case which tidies up the workspace on startup.

TBR=tandrii@chromium.org
NOTRY=true
TEST=./script_test.py

Review URL: https://codereview.chromium.org/960773007

Cr-Commit-Position: refs/heads/master@{#26928}
tools/release/auto_push.py
tools/release/test_scripts.py