Modify test: raise exception instead of sys.exit()

This commit is contained in:
vsr 2021-08-20 20:39:55 +03:00
parent df12e1cdc5
commit 1c601522ed

View File

@ -5,5 +5,5 @@
import os
import sys
result = 'SALOME_ACTOR_DELEGATE_TO_VTK' in os.environ
sys.exit(int(not result))
if 'SALOME_ACTOR_DELEGATE_TO_VTK' not in os.environ:
raise RuntimeError('SALOME_ACTOR_DELEGATE_TO_VTK is not set!')