forked from OERV-BSP/u-boot
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: 482ef90aeb ("test: efi_capsule: refactor efi_capsule test")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user