[infra] Clean-up debugging temp file quarantine issue.

Change-Id: I8004c07ce0a60ac5134ac9c871cca2a9300b3583
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/467381
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
Ryan Macnak
2025-12-16 13:34:00 -08:00
committed by Commit Queue
parent db06bb7f13
commit 3fbd3ab070
-15
View File
@@ -37,7 +37,6 @@ EXECUTABLE_NAMES = {
'iexplore': 'iexplore.exe',
'vctip': 'vctip.exe',
'mspdbsrv': 'mspdbsrv.exe',
'explorer': 'explorer.exe',
},
'linux': {
'chrome': 'chrome',
@@ -307,20 +306,6 @@ def Main():
status += KillVSBuild()
if options.kill_browsers == 'True':
status += KillBrowsers()
if os_name == 'win32':
# On Windows 11, a bunch of files accumulate in temp named `xml_file (#).xml`.
# These seem to be created by taskbar widgets. The swarming client is unable
# to delete them, presumably because Explorer normally still running. Killing
# Explorer should allow these files to be deleted. If it doesn't restart, it
# should also prevent them from being created.
status += Kill('explorer')
for path, dirs, files in os.walk(os.environ['TEMP']):
for filename in files:
print(os.path.join(path, filename))
for path, dirs, files in os.walk(
os.path.join(os.environ['LOCALAPPDATA'], 'Temp')):
for filename in files:
print(os.path.join(path, filename))
return status