From 2e1ca205b1cfa14e3f50a187184b4e24dd7b7af4 Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Thu, 5 Nov 2015 10:00:22 +0100
Subject: [PATCH] TEST: fix python wrapping test, inxml must be a valid file

---
 Modules/Wrappers/SWIG/test/python/CMakeLists.txt              | 3 ++-
 .../Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Modules/Wrappers/SWIG/test/python/CMakeLists.txt b/Modules/Wrappers/SWIG/test/python/CMakeLists.txt
index c93fb38965..203a20a6d2 100644
--- a/Modules/Wrappers/SWIG/test/python/CMakeLists.txt
+++ b/Modules/Wrappers/SWIG/test/python/CMakeLists.txt
@@ -82,4 +82,5 @@ add_test( NAME pyTvNewStyleParameters
           COMMAND ${TEST_DRIVER} Execute
           ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/PythonNewStyleParametersTest.py
           ${OTB_DATA_ROOT}/Input/poupees.tif
-          ${TEMP}/pyTvNewStyleParametersTest.tif )
+          ${TEMP}/pyTvNewStyleParametersTest.tif
+          ${OTB_DATA_ROOT}/Input/apTvUtSmoothingTest_OutXML.xml)
diff --git a/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py b/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py
index 9f15b51ec9..9e05ab4b78 100644
--- a/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py
+++ b/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py
@@ -87,8 +87,8 @@ app.SetParameterString('outputs.mode', 'orthofit')
 cm_assert(app.OUTPUTS.MODE, 'orthofit')
 
 #14 - inputxml parameter set
-app.INXML = 'input.xml'
-cm_assert(app.GetParameterString('inxml'), 'input.xml')
+app.INXML = argv[3]
+cm_assert(app.GetParameterString('inxml'), argv[3])
 
 #15 - outputxml parameter get
 app.SetParameterString('outxml', 'output.xml')
-- 
GitLab