]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove unused bdd util functions
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 9 Mar 2025 16:34:40 +0000 (17:34 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 9 Mar 2025 16:34:40 +0000 (17:34 +0100)
test/bdd/steps/utils.py [deleted file]

diff --git a/test/bdd/steps/utils.py b/test/bdd/steps/utils.py
deleted file mode 100644 (file)
index 19ce792..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# This file is part of Nominatim. (https://nominatim.org)
-#
-# Copyright (C) 2025 by the Nominatim developer community.
-# For a full list of authors see the git log.
-"""
-Various smaller helps for step execution.
-"""
-import logging
-import subprocess
-
-LOG = logging.getLogger(__name__)
-
-
-def run_script(cmd, **kwargs):
-    """ Run the given command, check that it is successful and output
-        when necessary.
-    """
-    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
-                            **kwargs)
-    (outp, outerr) = proc.communicate()
-    outp = outp.decode('utf-8')
-    outerr = outerr.decode('utf-8').replace('\\n', '\n')
-    LOG.debug("Run command: %s\n%s\n%s", cmd, outp, outerr)
-
-    assert proc.returncode == 0, "Script '{}' failed:\n{}\n{}\n".format(cmd[0], outp, outerr)
-
-    return outp, outerr