Skip to content

Commit

Permalink
TEST: Fixing tests failing because of new metadata domain DERIVED_SUB…
Browse files Browse the repository at this point in the history
…DATASETS
  • Loading branch information
jmichel-otb committed Jul 12, 2016
1 parent a897355 commit 84afb22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion autotest/gdrivers/gpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2069,7 +2069,7 @@ def gpkg_21():
out_ds = gdaltest.gpkg_dr.Create('tmp/tmp.gpkg', 1, 1)
out_ds.SetGeoTransform([0,1,0,0,0,-1])
mddlist = out_ds.GetMetadataDomainList()
if len(mddlist) != 2:
if len(mddlist) != 3:
gdaltest.post_reason('fail')
print(mddlist)
return 'fail'
Expand Down
14 changes: 7 additions & 7 deletions autotest/gdrivers/jp2openjpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,7 @@ def jp2openjpeg_42():
if ds.GetGCPCount() != 1:
gdaltest.post_reason('fail')
return 'fail'
if len(ds.GetMetadataDomainList()) != 1 :
if len(ds.GetMetadataDomainList()) != 2 :
gdaltest.post_reason('fail')
print(ds.GetMetadataDomainList())
return 'fail'
Expand All @@ -2115,7 +2115,7 @@ def jp2openjpeg_42():
if ds.GetGCPCount() != 0:
gdaltest.post_reason('fail')
return 'fail'
if ds.GetMetadataDomainList() is not None :
if ds.GetMetadataDomainList() != ['', 'DERIVED_SUBDATASETS']:
gdaltest.post_reason('fail')
print(ds.GetMetadataDomainList())
return 'fail'
Expand All @@ -2138,7 +2138,7 @@ def jp2openjpeg_42():
print(ds.GetGeoTransform())
return 'fail'
# Check that we have a GMLJP2 box
if ds.GetMetadataDomainList() != ['xml:gml.root-instance'] :
if ds.GetMetadataDomainList() != ['xml:gml.root-instance','', 'DERIVED_SUBDATASETS'] :
gdaltest.post_reason('fail')
print(ds.GetMetadataDomainList())
return 'fail'
Expand All @@ -2160,7 +2160,7 @@ def jp2openjpeg_42():
gdaltest.post_reason('fail')
print(ds.GetGeoTransform())
return 'fail'
if ds.GetMetadataDomainList() is not None:
if ds.GetMetadataDomainList() != ['', 'DERIVED_SUBDATASETS']:
gdaltest.post_reason('fail')
print(ds.GetMetadataDomainList())
return 'fail'
Expand All @@ -2187,7 +2187,7 @@ def jp2openjpeg_42():
gdaltest.post_reason('fail')
print(ds.GetGeoTransform())
return 'fail'
if ds.GetMetadataDomainList() is not None:
if ds.GetMetadataDomainList() != ['', 'DERIVED_SUBDATASETS']:
gdaltest.post_reason('fail')
print(ds.GetMetadataDomainList())
return 'fail'
Expand Down Expand Up @@ -2218,7 +2218,7 @@ def jp2openjpeg_42():
gdaltest.post_reason('fail')
print(ds.GetGeoTransform())
return 'fail'
if ds.GetMetadataDomainList() is None:
if ds.GetMetadataDomainList() != ['xml:gml.root-instance', '', 'DERIVED_SUBDATASETS']:
gdaltest.post_reason('fail')
print(ds.GetMetadataDomainList())
return 'fail'
Expand All @@ -2235,7 +2235,7 @@ def jp2openjpeg_42():
if len(ds.GetGCPs()) == 0:
gdaltest.post_reason('fail')
return 'fail'
if ds.GetMetadataDomainList() is not None:
if ds.GetMetadataDomainList() != ['', 'DERIVED_SUBDATASETS']:
gdaltest.post_reason('fail')
print(ds.GetMetadataDomainList())
return 'fail'
Expand Down

0 comments on commit 84afb22

Please sign in to comment.