Commit b03ac085 authored by tonyg@chromium.org's avatar tonyg@chromium.org

Fix performance trybots.

gclient revert can no longer run now that we're using botupdate.
This works around the issue by using git reset --hard.

BUG=401129
NOTRY=True

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

Cr-Commit-Position: refs/heads/master@{#288490}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288490 0039d316-1c4b-4281-b951-d872f2087c98
parent ebffcb64
......@@ -270,8 +270,13 @@ def _RunPerformanceTest(config, path_to_file):
bisect_utils.OutputAnnotationStepClosed()
bisect_utils.OutputAnnotationStepStart('Reverting Patch')
if bisect_utils.RunGClient(['revert']):
raise RuntimeError('Failed to run gclient runhooks')
# TODO: When this is re-written to recipes, this should use bot_update's
# revert mechanism to fully revert the client. But for now, since we know that
# the perf trybot currently only supports src/ and src/third_party/WebKit, we
# simply reset those two directories.
bisect_utils.CheckRunGit(['reset', '--hard'])
bisect_utils.CheckRunGit(['reset', '--hard'],
os.path.join('third_party', 'WebKit'))
bisect_utils.OutputAnnotationStepClosed()
bisect_utils.OutputAnnotationStepStart('Building Without Patch')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment