Skip to content

Commit

Permalink
autotest gdal_calc: fix test of @optfile on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Jan 16, 2025
1 parent 2fed984 commit 867230f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion autotest/pyscripts/test_gdal_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,13 @@ def test_gdal_calc_py_7a(script_path, tmp_path, stefan_full_rgba, opt_prefix):
with open(opt_file, "w") as f:
f.write(f"-A {infile} --calc=A --overwrite --outfile {out}")

test_py_scripts.run_py_script(script_path, "gdal_calc", f"{opt_prefix}{opt_file}")
if opt_prefix == "@":
test_py_scripts.run_py_script(script_path, "gdal_calc", f'"@{opt_file}"')
else:
test_py_scripts.run_py_script(
script_path, "gdal_calc", f"{opt_prefix}{opt_file}"
)

check_file(out, input_checksum[0])


Expand Down

0 comments on commit 867230f

Please sign in to comment.