[tbot] Testcases duplicated
Stefano Babic
sbabic at denx.de
Thu Dec 20 12:40:03 UTC 2018
Hi,
I have maybe misunderstood how to compose testcases. I have a general
testcase (=update the system) in swupdate.py. This takes as parameter
the new update package.
Then, each board as a composed testcase where I run more as one test case.
General tc (swupdate.py):
-------------------------
@tbot.testcase
def checkswupdate(
....
@tbot.testcase
def swupdateweb(
mach: typing.Optional[linux.LinuxMachine] = None,
ip = None,
path = None,
) -> None:
.....
board tc:
----------
import contextlib
import typing
import time
import tbot
from tbot.machine import linux
from tbot import tc
from swupdate import *
@tbot.testcase
def gtuswupdate(
mach: typing.Optional[linux.LinuxMachine] = None,
) -> None:
.......
tc.testsuite(
checkswupdate,
swupdateweb,
mach=lh,
path=path,
ip=ip
)
This works when I have just one board. If I add a second board, and I
want to add a "newboardupdate", I have to import the testcases and tbot
reports "duplicated testcases" (all files seems to be loaded). What is
wrong ?
Best regards,
Stefano
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
More information about the tbot
mailing list