-
Notifications
You must be signed in to change notification settings - Fork 70
chore: remove generated files in tests #2644
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
Conversation
…/sdk-platform-java into chore/update-integration-test
| self.assertEqual("output", Path(repo_config.output_folder).name) | ||
| library_path = sorted([Path(key).name for key in repo_config.libraries]) | ||
| self.assertEqual(["misc"], library_path) | ||
| shutil.rmtree(repo_config.output_folder, ignore_errors=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we can not use __remove_generated_files here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__remove_generated_files is used to delete .repo-metadata.json, .OwlBot-hermetic.yaml and owlbot.py and I changed the method name to __remove_prerequisite_files.
| "The generated PR description does not match the expected golden file", | ||
| ) | ||
| print(" PR description comparison succeed.") | ||
| self.__remove_generated_files() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the generated files after the integration test succeeds.
|
|
In this PR: - Remove generated files after running tests. Note that files generated by `docker run` have root permission, thus can't be removed by this PR. This issue will be resolved in #2615.




In this PR:
Note that files generated by
docker runhave root permission, thus can't be removed by this PR. This issue will be resolved in #2615.