mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-26 17:23:38 +01:00
fix for catching generaltests exceptions and exiting instead of continuing
This commit is contained in:
@@ -199,14 +199,6 @@ with open(fname, 'w') as fp:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
startGeneralTests(fp, file_results)
|
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)
|
killAllStaleProcesses(fp)
|
||||||
|
|
||||||
for server in servers:
|
for server in servers:
|
||||||
@@ -241,4 +233,12 @@ with open(fname, 'w') as fp:
|
|||||||
|
|
||||||
break
|
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)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user