From b9962daed2cf2f5fee47ea906560ed6e7040c7dd Mon Sep 17 00:00:00 2001 From: Dmitry Baryshnikov Date: Fri, 1 Jul 2016 11:59:17 +0000 Subject: [PATCH] Fix ogrlineref test #5. Warnings will not fail this test. git-svn-id: https://svn.osgeo.org/gdal/trunk@34501 f0d54148-0727-0410-94bb-9a71ac55c965 --- autotest/utilities/test_ogrlineref.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/autotest/utilities/test_ogrlineref.py b/autotest/utilities/test_ogrlineref.py index 7d8e57e48cab..4dfeb1534da7 100755 --- a/autotest/utilities/test_ogrlineref.py +++ b/autotest/utilities/test_ogrlineref.py @@ -129,12 +129,11 @@ def test_ogrlineref_5(): if os.path.exists('tmp/parts.kml'): ogr.GetDriverByName('KML').DeleteDataSource('tmp/parts.kml') - ret, err = gdaltest.runexternal_out_and_err(test_cli_utilities.get_ogrlineref_path() + ' -create -f "KML" -l data/path.shp -p data/mstones.shp -pm pos -o tmp/parts.kml -s 222') - if err is not None and err != '': - gdaltest.post_reason('got error/warning: "%s"' % err) - return 'fail' + gdaltest.runexternal_out_and_err(test_cli_utilities.get_ogrlineref_path() + ' -create -f "KML" -l data/path.shp -p data/mstones.shp -pm pos -o tmp/parts.kml -s 222') + if os.path.exists('tmp/parts.kml'): + return 'success' - return 'success' + return 'fail' def test_ogrlineref_cleanup():