Skip to content

Commit

Permalink
autotest gdalenhance: use -quiet
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Oct 28, 2024
1 parent 9edfe6c commit ff0bf07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autotest/utilities/test_gdalenhance.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def gdalenhance_path():
def test_gdalenhance_output_histogram(gdalenhance_path, tmp_path):

out, err = gdaltest.runexternal_out_and_err(
f"{gdalenhance_path} -equalize ../gcore/data/rgbsmall.tif"
f"{gdalenhance_path} -quiet -equalize ../gcore/data/rgbsmall.tif"
)

assert not err
Expand All @@ -58,7 +58,7 @@ def test_gdalenhance_output_histogram(gdalenhance_path, tmp_path):
enhanced_fname = tmp_path / "out.tif"

out, err = gdaltest.runexternal_out_and_err(
f"{gdalenhance_path} -config {lut_fname} ../gcore/data/rgbsmall.tif {enhanced_fname}"
f"{gdalenhance_path} -quiet -config {lut_fname} ../gcore/data/rgbsmall.tif {enhanced_fname}"
)

assert not err
Expand All @@ -76,7 +76,7 @@ def test_gdalenhance_output_image(gdalenhance_path, tmp_path):
outfile = tmp_path / "out.tif"

out, err = gdaltest.runexternal_out_and_err(
f"{gdalenhance_path} -equalize -co 'COMPRESS=DEFLATE' {infile} {outfile}"
f"{gdalenhance_path} -quiet -equalize -co 'COMPRESS=DEFLATE' {infile} {outfile}"
)

assert not err
Expand All @@ -100,7 +100,7 @@ def test_gdalenhance_invalid_usage(gdalenhance_path, tmp_path):
outfile = tmp_path / "out.tif"

out, err = gdaltest.runexternal_out_and_err(
f"{gdalenhance_path} {infile} {outfile}"
f"{gdalenhance_path} -quiet {infile} {outfile}"
)

assert "ret code = 1" in err
Expand Down

0 comments on commit ff0bf07

Please sign in to comment.