-
Notifications
You must be signed in to change notification settings - Fork 272
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
Add uninstall function for tar integTest between plugins #2020
Add uninstall function for tar integTest between plugins #2020
Conversation
Signed-off-by: Peter Zhu <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
def uninstall(self) -> None: | ||
""" | ||
Allow distribution that is not 'tar' to do proper cleanup | ||
Allow distribution to do proper cleanup |
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.
To cleanup. Proper is unnecessary filler.
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.
Will change later.
|
||
def uninstall(self) -> None: | ||
logging.info(f"Cleanup {self.work_dir}/* content after the test") | ||
subprocess.check_call(f"rm -rf {self.work_dir}/*", shell=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.
It always worries me to have “rm -rf”, and it won’t work for windows, is there a python method?
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.
There is ways to cleanup a folder, but not contents within the folder, unless you list all the files and loop deletion.
Will try researching.
Signed-off-by: Peter Zhu [email protected]
Description
Add uninstall function for tar integTest between plugins.
Now the cluster is green not yellow between each plugin type run.
Issues Resolved
#2018
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.