fix for catching generaltests exceptions and exiting instead of continuing

This commit is contained in:
maliakal_d 2025-04-11 16:37:52 +02:00
parent c33a8b9742
commit 3e45db2300

View File

@ -199,14 +199,6 @@ with open(fname, 'w') as fp:
try:
startGeneralTests(fp, file_results)
except Exception as e:
# redirect to terminal
sys.stdout = original_stdout
sys.stderr = original_stderr
Log(Fore.RED, f'Exception caught with general testing. Cleaning up...')
Log(Fore.RED, str(e))
cleanSharedmemory(sys.stdout)
killAllStaleProcesses(fp)
for server in servers:
@ -241,4 +233,12 @@ with open(fname, 'w') as fp:
break
except Exception as e:
# redirect to terminal
sys.stdout = original_stdout
sys.stderr = original_stderr
Log(Fore.RED, f'Exception caught with general testing. Cleaning up...')
Log(Fore.RED, str(e))
cleanSharedmemory(sys.stdout)