-
Meng ZHU authored
ParaView/Servers/ServerManager/Testing/Python/CMakeLists.txt is modified to handle specially for PythonFilters.py which tests the Python programmable filter functionality. The modification adds PythonFilters.py to the test list, it also makes the ctest system parses the outputs of PythonFilters.py for regular expression that contains "Error". The reason for this special behavior is that the programmable filter back end constructs Python scripts on the fly after it receives input expressions. If there is any error in the input expressisons, the errors or exceptions that are caused when the constructed script is run, will not be catched by the constructing environment. So even the test fail, there is no way to inform ctest about it since the exception is not catchable. The only possible way is to let ctest parse the outputs and when it sees anything containing "Error", assuming that the test failed. Of course, this is not comprehensive, for example, if "Warning" is thrown, ctest will not detect it. However, given the constraints, this is the best can be done.
db30e7d7