diff options
author | Yuqian Li <liyuqian@google.com> | 2018-01-02 11:56:52 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-02 21:20:01 +0000 |
commit | 632156d835940df95a900d8e8c9851eda0cb917c (patch) | |
tree | 3a684aad17b7db1b331d9366e359bded9f2730ae /tools/calmbench/calmbench.py | |
parent | 46596ae50559e89a0a2462573ac9448cf309cf56 (diff) |
Do `gclient sync` before compile
Bug: skia:7388
Change-Id: I8d68fe754ceeedea8ca7ff53ad9d2bb18a328288
Reviewed-on: https://skia-review.googlesource.com/90241
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'tools/calmbench/calmbench.py')
-rw-r--r-- | tools/calmbench/calmbench.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/calmbench/calmbench.py b/tools/calmbench/calmbench.py index b786b5f346..6ddd96b5e1 100644 --- a/tools/calmbench/calmbench.py +++ b/tools/calmbench/calmbench.py @@ -129,6 +129,7 @@ def compile_branch(args, branch): commands = [ ['git', 'checkout', branch], + ['gclient', 'sync'], ['ninja', '-C', args.ninjadir, 'nanobench'], ['cp', args.ninjadir + '/nanobench', nano_path(args, branch)] ] @@ -150,6 +151,7 @@ def compile_modified(args): subprocess.check_call(['git', 'reset', 'HEAD^', '--soft']) subprocess.check_call(['git', 'stash']) + subprocess.check_call(['gclient', 'sync'], cwd=args.skiadir) subprocess.check_call( ['ninja', '-C', args.ninjadir, 'nanobench'], cwd=args.skiadir) subprocess.check_call( |