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 a4ea665 commit 784ba1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 Down Expand Up @@ -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 784ba1c

Please sign in to comment.