<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Jan 30, 2025 at 5:13 PM Dean Marx <<a href="mailto:dmarx@iol.unh.edu">dmarx@iol.unh.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Add method cleanup_sut to framework that removes a<br>
DPDK source from a SUT node at the conclusion of a testrun.<br>
This will only run when the DPDK source is being copied<br>
from the DTS engine node during the testrun<br>
(when remote=false in the conf.yaml).<br>
<br>
Signed-off-by: Dean Marx <<a href="mailto:dmarx@iol.unh.edu" target="_blank">dmarx@iol.unh.edu</a>><br>
---<br>
 dts/framework/runner.py                 |  2 +-<br>
 dts/framework/testbed_model/sut_node.py | 21 ++++++++++++++++++---<br>
 2 files changed, 19 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/dts/framework/runner.py b/dts/framework/runner.py<br>
index 9f9789cf49..367034e038 100644<br>
--- a/dts/framework/runner.py<br>
+++ b/dts/framework/runner.py<br>
@@ -336,7 +336,7 @@ def _run_test_run(<br>
         finally:<br>
             try:<br>
                 self._logger.set_stage(DtsStage.test_run_teardown)<br>
-                sut_node.tear_down_test_run()<br>
+                sut_node.tear_down_test_run(test_run_config.dpdk_config.dpdk_location)<br>
                 tg_node.tear_down_test_run()<br>
                 test_run_result.update_teardown(Result.PASS)<br>
             except Exception as e:<br>
diff --git a/dts/framework/testbed_model/sut_node.py b/dts/framework/testbed_model/sut_node.py<br>
index 483733cede..c73500b146 100644<br>
--- a/dts/framework/testbed_model/sut_node.py<br>
+++ b/dts/framework/testbed_model/sut_node.py<br>
@@ -188,6 +188,19 @@ def path_to_devbind_script(self) -> PurePath | str:<br>
             )<br>
         return self._path_to_devbind_script<br>
<br>
+    def cleanup_sut(self, dpdk_build_location, remote_tree: str | PurePath | None) -> None:<br></blockquote><div><br></div><div>I think you have a missing type hint here for the dpdk_build_location arg. I think it is a LocalDPDKLocation.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
-- <br>
2.48.1<br>
<br></blockquote><div><br></div><div>While you're at it, you can edit the commit message to replace the reference to conf.yaml (no longer named this) to the new name or just "configuration." </div><div><br></div><div>Thanks and sorry I missed this on the first look through! Can merge this asap once you make the edits.</div><div> </div></div></div>