Skip to content

Commit

Permalink
handle file exists, update log path
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpal committed May 24, 2024
1 parent 0e441ab commit a25e62e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infra/nightly-resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h2>Raw</h2>
<a href="table.html?table=benchmarks">Nightly Table</a>
</p>
<p>
<a href="data/log.txt">Log</a>
<a href="log.txt">Log</a>
</p>
</body>

Expand Down
5 changes: 4 additions & 1 deletion infra/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ def aggregate(compile_times, bench_times):
exit(1)

# Create tmp directory for intermediate files
os.mkdir(TMP_DIR)
try:
os.mkdir(TMP_DIR)
except FileExistsError:
print(f"{TMP_DIR} exits, overwriting contents")

bril_dir, DATA_DIR = os.sys.argv[1:]
profiles = []
Expand Down

0 comments on commit a25e62e

Please sign in to comment.