Skip to content

Commit

Permalink
Fix ogrlineref test #5. Warnings will not fail this test.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/gdal/trunk@34501 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
Dmitry Baryshnikov committed Jul 1, 2016
1 parent a689584 commit b9962da
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions autotest/utilities/test_ogrlineref.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit b9962da

Please sign in to comment.