Skip to content

Commit 3d21a9a

Browse files
tstellartru
authored andcommitted
[Clang][perf-training] Fix clean command in perf-helper.py (#118978)
The first path argument was always being ignored, and since most calls to this command only passed one path, it wasn't actually doing anything in most cases. This bug was introduced by dd0356d. (cherry picked from commit 18af3fc)
1 parent c9e72b3 commit 3d21a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/utils/perf-training/perf-helper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def clean(args):
3636
+ "\tRemoves all files with extension from <path>."
3737
)
3838
return 1
39-
for path in args[1:-1]:
39+
for path in args[0:-1]:
4040
for filename in findFilesWithExtension(path, args[-1]):
4141
os.remove(filename)
4242
return 0

0 commit comments

Comments
 (0)