-
Notifications
You must be signed in to change notification settings - Fork 56
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
chore: remove generated files in tests #2644
Conversation
…/sdk-platform-java into chore/update-integration-test
@@ -373,6 +375,7 @@ def test_prepare_repo_split_repo_success(self): | |||
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
.
@@ -168,6 +175,7 @@ def test_entry_point_running_in_container(self): | |||
"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.
Quality Gate passed for 'gapic-generator-java-root'Issues Measures |
Quality Gate passed for 'java_showcase_integration_tests'Issues Measures |
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 run
have root permission, thus can't be removed by this PR. This issue will be resolved in #2615.