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:

Version 1
  • Version 1
  • 6a6d4f6
  • Oskari Pirttikoski
5 months ago
  • c20653b
  • Oskari Pirttikoski
5 months ago
  • 7d10941
  • Oskari Pirttikoski
5 months ago
  • 2ba935d
  • Oskari Pirttikoski
5 months ago
  • 19e464b
  • Oskari Pirttikoski
5 months ago
  • 1c472cf
  • Oskari Pirttikoski
5 months ago
  • c4bc732
  • Oskari Pirttikoski
5 months ago
  • 4c9654c
  • Oskari Pirttikoski
5 months ago
  • a2198a7
  • Oskari Pirttikoski
5 months ago
  • 6366444
  • Oskari Pirttikoski
5 months ago
  • 5493683
  • Oskari Pirttikoski
5 months ago
  • 8df3fe1
  • Oskari Pirttikoski
5 months ago
  • d8377bf
  • Oskari Pirttikoski
5 months ago
  • 1e94677
  • Oskari Pirttikoski
5 months ago
  • f003cd4
  • Oskari Pirttikoski
5 months ago
  • 0975b9a
  • Miki Leskinen
5 months ago
Showing 9cf21a9-6a6d4f6

Comments

Pushed new version 1

→ State changed from Open to Closed

Thanks for your effort.
Merged to master.

Add a new comment:

Login or create an account to post a comment

How to apply this merge request to your repository