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

Cleanup tempfiles #8829

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

zhijianli88
Copy link
Contributor

After the PR, we can cleanup all remaining tempdir

lizj@FNSTPC:~/workspace/k8s/helm$ export TMPDIR=/tmp/xxxxxx ; make clean; make test >/dev/null && echo PASS; ls -l $TMPDIR
PASS
total 0

@helm-bot helm-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 30, 2020
@zhijianli88
Copy link
Contributor Author

Kindly ping

Previously, after 'make test', some many temp dir have not been removed.
Since this commit, temp dir created by ensure.HelmHome()
ensure.TempDir() and ensure.TempFile() will be removed automatically in
the end of testing

- Use T.cleanup to remove the tempdir
- Remove unnecessary defer

Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
As suggestion by Paul Brousseau, It might be useful to leave the directory in
place if the test fails.

Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
these tests will dirty the HelmHome

Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
@zhijianli88
Copy link
Contributor Author

i just rebased the PR, anyone could help to have a review ?

@zhijianli88
Copy link
Contributor Author

Ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants