summaryrefslogtreecommitdiff
path: root/test/py/tests/test_efi_capsule/capsule_common.py
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-07-15 10:48:39 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-07-20 09:12:50 +0200
commit4f399f277cd0116944642ea7246795678fcb495f (patch)
tree673221448d411ac927c92ae798250782e9f5f883 /test/py/tests/test_efi_capsule/capsule_common.py
parent06fc19ca4de943827f5aa026f7aa9c3a05411677 (diff)
test: avoid function name 'setup'
pytest 7.3.2 treats the function name 'setup' as a fixture [1]. This leads to errors like: TypeError: setup() missing 2 required positional arguments: 'disk_img' and 'osindications' Rename setup() to capsule_setup(). [1] How to run tests written for nose https://docs.pytest.org/en/7.3.x/how-to/nose.html Fixes: 482ef90aeb4c ("test: efi_capsule: refactor efi_capsule test") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/py/tests/test_efi_capsule/capsule_common.py')
-rw-r--r--test/py/tests/test_efi_capsule/capsule_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/py/tests/test_efi_capsule/capsule_common.py b/test/py/tests/test_efi_capsule/capsule_common.py
index 9eef6767a6e..fc0d851c619 100644
--- a/test/py/tests/test_efi_capsule/capsule_common.py
+++ b/test/py/tests/test_efi_capsule/capsule_common.py
@@ -6,7 +6,7 @@
from capsule_defs import CAPSULE_DATA_DIR, CAPSULE_INSTALL_DIR
-def setup(u_boot_console, disk_img, osindications):
+def capsule_setup(u_boot_console, disk_img, osindications):
"""setup the test
Args: