Skip to content

Commit 911ac8e

Browse files
committed
Fix code size reporting when input directory is missing a trailing '/'
run_smoke_bench script fails to report code size changes if you have a trailing '/' in <old_build_dir> but not <new_build_dir>. This change appends a separator if it is missing
1 parent 37657d0 commit 911ac8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

benchmark/scripts/run_smoke_bench

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ def report_code_size(opt_level, old_dir, new_dir, platform, output_file):
272272
old_lines = ""
273273
new_lines = ""
274274
for oldfile in files:
275+
new_dir = os.path.join(new_dir, '')
275276
newfile = oldfile.replace(old_dir, new_dir, 1)
276277
if os.path.isfile(newfile):
277278
oldsize = get_codesize(oldfile)

0 commit comments

Comments
 (0)