Hello Edward,
Your understanding is correct in that it’s the .lg.e that is causing the issues here. .lg.e will cause an exit when a process is still initialising which .servers.startupdepcyclestypename relies on as this function will typically only be used during initialisation. However, with the -test flag, tests are run after initialisation and so it doesn’t exit as expected as you have seen.
For the function to work as expected after initialisation it is true that it should error out each time so that it can exit and not get stuck in that looping behaviour. We are making the relevant changes to the .servers.startupdepcyclestypename function now.
Kind Regards,
Emma Goodwin
TorQ Support