test_check_service_state: fix a data race
This slapos.toolbox test revealed a data race in test_check_service_state
: when the supervisor process shuts down it cleans up some files that may simultaneously be destroyed by shutil.rmtree
. This MR ensures shutil.rmtree
is called after the supervisor has finished shutting down.