Commit f951c5d3 authored by Jonathan Guinet's avatar Jonathan Guinet

ENH: StereoSensorModelToElevationMap python test has been removed

parent 3862946c
#!/usr/bin/python
# Import the otb applications package
import otbApplication, sys
# The following line creates an instance of the StereoSensorModelToElevationMap application
StereoSensorModelToElevationMap = otbApplication.Registry.CreateApplication("StereoSensorModelToElevationMap")
# The following lines set all the application parameters:
StereoSensorModelToElevationMap.SetParameterString("ref", sys.argv[1])
StereoSensorModelToElevationMap.SetParameterString("sec", sys.argv[2])
StereoSensorModelToElevationMap.SetParameterString("out", sys.argv[3])
StereoSensorModelToElevationMap.SetParameterString("elev.dem", "dem_wrong_path")
StereoSensorModelToElevationMap.SetParameterString("elev.geoid", "geoid_wrong_file")
# This bug verifies that a proper exception is raised during ExecuteAndWriteOutput
try:
StereoSensorModelToElevationMap.ExecuteAndWriteOutput()
except:
print "Catching exception : this is the expected behavior - TEST PASS"
sys.exit( 0 )
print "Should have raised an exception, but did not - TEST FAIL"
sys.exit( 1 )
......@@ -32,10 +32,3 @@ add_test( NAME pyTvBug440
${TEMP}/pyTvBug440Output.tif
)
add_test( NAME pyTvBug441
COMMAND ${TEST_DRIVER} Execute
${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Bug441.py
${OTB_DATA_ROOT}/Examples/sensor_stereo_left.tif
${OTB_DATA_ROOT}/Examples/sensor_stereo_right.tif
${TEMP}/pyTvBug441Output.tif
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment