Reviewing merge request #121: Make sure all OTS specific files and directories are cleaned up
Previously some temporary files (e.g. images) were left uncleaned in the file system. Now all OTS specific temporary files and directories are deleted (at latest) when executing 'sudo /etc/init.d/ots-worker start'. Worker/conductor should handle all unexpected exceptions and delete all testrun specific files but e.g. in case of 'kill -9' there is no chance for doing the cleanup by the process itself. This addition makes sure that at least when restarting the workers there will be no temporary files left in the file system.
Now all OTS specific temporary files and directories are prefixed with 'ots-tmp-' and they are located (as before) in '/tmp'.
Files are deleted just before OTS workers are started when executing 'sudo /etc/init.d/ots-worker start'.
The cleanup script is installed in /usr/local/bin so it will be in PATH.
Also some refactorings included.
Enjoy.
Commits that would be merged:
- 9cf21a9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9cf21a9-6a6d4f6

Add a new comment:
Login or create an account to post a comment