From f951c5d3124ed20b857fec2bdbfeb9eb565fa560 Mon Sep 17 00:00:00 2001 From: Jonathan Guinet <jonathan.guinet@c-s.fr> Date: Wed, 3 Jul 2013 15:13:57 +0200 Subject: [PATCH] ENH: StereoSensorModelToElevationMap python test has been removed --- Testing/Code/Wrappers/Python/Bug441.py | 25 --------------------- Testing/Code/Wrappers/Python/CMakeLists.txt | 7 ------ 2 files changed, 32 deletions(-) delete mode 100644 Testing/Code/Wrappers/Python/Bug441.py diff --git a/Testing/Code/Wrappers/Python/Bug441.py b/Testing/Code/Wrappers/Python/Bug441.py deleted file mode 100644 index 02a92c0b20..0000000000 --- a/Testing/Code/Wrappers/Python/Bug441.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/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 ) - diff --git a/Testing/Code/Wrappers/Python/CMakeLists.txt b/Testing/Code/Wrappers/Python/CMakeLists.txt index d8b9dc5cba..b793bfc0bb 100644 --- a/Testing/Code/Wrappers/Python/CMakeLists.txt +++ b/Testing/Code/Wrappers/Python/CMakeLists.txt @@ -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 - ) -- GitLab