Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-110313: regrtest: don't remove files created by PGO build #110654

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Lib/test/libregrtest/save_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ def resource_info(self):
method_suffix = name.replace('.', '_')
get_name = 'get_' + method_suffix
restore_name = 'restore_' + method_suffix
if self.pgo and method_suffix == 'files':
# gh-110313: Running PROFILE_TASK of make creates profile files
# like "code-4262.profclangr" in the current directory on
# purpose. They must not be removed.
continue
yield name, getattr(self, get_name), getattr(self, restore_name)

def __enter__(self):
Expand Down