Commit a8e6d1ed authored by Federico Vaga's avatar Federico Vaga

tst: rename function to convert slot to id

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent d609ea3d
......@@ -15,7 +15,7 @@ def valid_slot_type(slot):
return slot
def fmcfd_id_from_slot(slot):
def id_from_slot(slot):
carrier, mezzanine = slot.split("-")
carrier_bus, carrier_slot = carrier.split(".")
carrier_slot = int(carrier_slot)
......@@ -80,7 +80,7 @@ def pytest_configure(config):
raise Exception()
pytest.fd_id = []
for slot in pytest.slot:
pytest.fd_id.append(fmcfd_id_from_slot(slot))
pytest.fd_id.append(id_from_slot(slot))
pytest.channels = config.getoption("--channel")
if len(pytest.channels) == 0:
pytest.channels = range(FmcFineDelay.CHANNEL_NUMBER)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment