X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/28ee59dd643e4582ade1aa8fd6a788f0a4daf69e..a885e7309ab1feba1e2ec7b183eb383e775c162e:/test/bdd/environment.py diff --git a/test/bdd/environment.py b/test/bdd/environment.py index 90c75724..2bea3180 100644 --- a/test/bdd/environment.py +++ b/test/bdd/environment.py @@ -151,7 +151,8 @@ class NominatimEnvironment(object): self.run_nominatim_script('update', *args, **kwargs) def run_nominatim_script(self, script, *args, **kwargs): - cmd = [os.path.join(self.build_dir, 'utils', '%s.php' % script)] + cmd = ['/usr/bin/env', 'php', '-Cq'] + cmd.append(os.path.join(self.build_dir, 'utils', '%s.php' % script)) cmd.extend(['--%s' % x for x in args]) for k, v in kwargs.items(): cmd.extend(('--' + k.replace('_', '-'), str(v)))