Commit 07d76e6d authored by Takuto Ikuta's avatar Takuto Ikuta Committed by Commit Bot

make vr_assets_profile dir always

This is necessary to make second build no-op.
Without this, following command runs the script always.
$ ninja -C out/android_arm64_dbg_recipe/ gen/tools/perf/contrib/vr_benchmarks/vr_assets_profile

Bug: 914264
Change-Id: I35ff097c6a34318813957b71c690386fc1a7a1e3
Reviewed-on: https://chromium-review.googlesource.com/c/1373734Reviewed-by: default avatarBrian Sheedy <bsheedy@chromium.org>
Reviewed-by: default avatarTibor Goldschwendt <tiborg@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615991}
parent 85de6d1d
...@@ -41,6 +41,8 @@ def main(): ...@@ -41,6 +41,8 @@ def main():
profile_dir = os.path.join(args.output, 'vr_assets_profile') profile_dir = os.path.join(args.output, 'vr_assets_profile')
if os.path.isdir(profile_dir): if os.path.isdir(profile_dir):
shutil.rmtree(profile_dir) shutil.rmtree(profile_dir)
os.makedirs(profile_dir)
# Check whether there are actually files to copy - if not, the lack of a # Check whether there are actually files to copy - if not, the lack of a
# directory will cause Telemetry to fail if we actually try to use the profile # directory will cause Telemetry to fail if we actually try to use the profile
# directory. This is a workaround for not being able to check whether we # directory. This is a workaround for not being able to check whether we
......
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