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>
This commit is contained in:
Yuqian Li 2018-01-02 11:56:52 -05:00 committed by Skia Commit-Bot
parent 46596ae505
commit 632156d835

View File

@ -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(