[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 dd0356d741aefa25ece973d6cc4b55dcb73b84b4.

(cherry picked from commit 18af3fc1bf8855e1e166e64a9210ed07d610aa54)
This commit is contained in:
Tom Stellard 2024-12-06 18:34:59 -08:00 committed by Tobias Hieta
parent c9e72b3945
commit 3d21a9a8e4
No known key found for this signature in database
GPG Key ID: 44F2485E45D59042

View File

@ -36,7 +36,7 @@ def clean(args):
+ "\tRemoves all files with extension from <path>."
)
return 1
for path in args[1:-1]:
for path in args[0:-1]:
for filename in findFilesWithExtension(path, args[-1]):
os.remove(filename)
return 0