diff --git a/scripts/non_visual_qa.py b/scripts/non_visual_qa.py index d5241bd4c..07076295d 100644 --- a/scripts/non_visual_qa.py +++ b/scripts/non_visual_qa.py @@ -94,7 +94,8 @@ def check_color_interpretation(self, gdalinfo: Dict[str, Any]) -> None: def run(self) -> None: gdalinfo_success = True - gdalinfo_command = ["gdalinfo", "-stats", "-json"] + # Set GDAL_PAM_ENABLED to NO to temporarily disable PAM support and prevent creation of auxiliary XML file + gdalinfo_command = ["gdalinfo", "-stats", "-json", "--config", "GDAL_PAM_ENABLED", "NO"] try: gdalinfo_process = run_gdal(gdalinfo_command, self.path) gdalinfo_result = {}