SavePythonState.py 502 Bytes
Newer Older
1 2 3 4 5
# test driver for the second half of the SavePythonState test. it
# sets up the testing environment, loads the state file (passed
# on the command line), and verifys the resulting image

import sys
6
from paraview import smtesting
7
print sys.argv
8
smtesting.ProcessCommandLineArguments()
9 10 11 12

execfile(sys.argv[1])


13 14 15 16 17
_view = GetActiveView()
_view.ViewSize = [300, 300]
_view.SMProxy.UpdateVTKObjects()

if not smtesting.DoRegressionTesting(_view.SMProxy):
18 19
  # This will lead to VTK object leaks.
  sys.exit(1)