Skip to content

Commit 65375da

Browse files
dmarxIOLpaul-szczepanek-arm
authored andcommitted
dts: fix devbind initialization
Rearrange the topology and DPDK setup/teardown calls during test runs to ensure the devbind script is not called while the DPDK tmp directory doesn't exist. Fixes: 4cef16f ("dts: improve port handling") Signed-off-by: Dean Marx <dmarx@iol.unh.edu> Reviewed-by: Patrick Robb <probb@iol.unh.edu>
1 parent 7e6d610 commit 65375da

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

dts/framework/test_run.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,9 @@ def next(self) -> State | None:
344344

345345
test_run.ctx.sut_node.setup()
346346
test_run.ctx.tg_node.setup()
347-
test_run.ctx.topology.setup()
348347
test_run.ctx.dpdk.setup()
348+
test_run.ctx.topology.setup()
349+
test_run.ctx.topology.configure_ports("sut", "dpdk")
349350
test_run.ctx.tg.setup(test_run.ctx.topology)
350351

351352
self.result.ports = test_run.ctx.topology.sut_ports + test_run.ctx.topology.tg_ports
@@ -433,8 +434,8 @@ def next(self) -> State | None:
433434
"""Next state."""
434435
self.test_run.ctx.shell_pool.terminate_current_pool()
435436
self.test_run.ctx.tg.teardown()
436-
self.test_run.ctx.dpdk.teardown()
437437
self.test_run.ctx.topology.teardown()
438+
self.test_run.ctx.dpdk.teardown()
438439
self.test_run.ctx.tg_node.teardown()
439440
self.test_run.ctx.sut_node.teardown()
440441
self.result.update_teardown(Result.PASS)

0 commit comments

Comments
 (0)