1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
# Test driver for the second half of the PythonStateTestDriver test. It
# sets up the testing environment, loads the state file (passed
# on the command line), and verifies the resulting image.
import sys
from paraview import smtesting
print(sys.argv)
smtesting.ProcessCommandLineArguments()
exec(open(sys.argv[1]).read())
_view = GetActiveView()
_view.ViewSize = [300, 300]
_view.SMProxy.UpdateVTKObjects()
if not smtesting.DoRegressionTesting(_view.SMProxy):
# This will lead to VTK object leaks.
sys.exit(1)
|