From 5fa14e7c8e923f065f48c94dd926991a84ff860e Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Wed, 4 Feb 2026 08:02:40 +0000 Subject: [PATCH 1/6] check_binarie --- spinnaker_testbase/root_test_case.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spinnaker_testbase/root_test_case.py b/spinnaker_testbase/root_test_case.py index af23567..c1c2254 100644 --- a/spinnaker_testbase/root_test_case.py +++ b/spinnaker_testbase/root_test_case.py @@ -126,3 +126,16 @@ def runsafe(self, method: Callable, retry_delay: float = 3.0, print("==========================================================") print("") time.sleep(retry_delay) + + def check_binary_used(self, binary:str) -> None: + self.check_binaries_used([binary]) + + def check_binaries_used(self, binaries:str) -> None: + targets = FecDataView.get_executable_targets() + files = set() + for target in targets.binaries: + _, file = os.path.split(target) + files.add(file) + for binary in binaries: + self.assertIn(binary, files) + print(files) From 083b886349579a708b134a403c46c6d0fa63fd61 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Thu, 5 Feb 2026 10:51:08 +0000 Subject: [PATCH 2/6] fix type --- spinnaker_testbase/root_test_case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spinnaker_testbase/root_test_case.py b/spinnaker_testbase/root_test_case.py index c1c2254..04618a8 100644 --- a/spinnaker_testbase/root_test_case.py +++ b/spinnaker_testbase/root_test_case.py @@ -130,7 +130,7 @@ def runsafe(self, method: Callable, retry_delay: float = 3.0, def check_binary_used(self, binary:str) -> None: self.check_binaries_used([binary]) - def check_binaries_used(self, binaries:str) -> None: + def check_binaries_used(self, binaries:List[str]) -> None: targets = FecDataView.get_executable_targets() files = set() for target in targets.binaries: From 8ffc1374624d3e9b7ed49463afa61ae1bed64e3a Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Thu, 5 Feb 2026 10:54:31 +0000 Subject: [PATCH 3/6] spacing --- spinnaker_testbase/root_test_case.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spinnaker_testbase/root_test_case.py b/spinnaker_testbase/root_test_case.py index 04618a8..ad6920c 100644 --- a/spinnaker_testbase/root_test_case.py +++ b/spinnaker_testbase/root_test_case.py @@ -127,10 +127,10 @@ def runsafe(self, method: Callable, retry_delay: float = 3.0, print("") time.sleep(retry_delay) - def check_binary_used(self, binary:str) -> None: + def check_binary_used(self, binary: str) -> None: self.check_binaries_used([binary]) - def check_binaries_used(self, binaries:List[str]) -> None: + def check_binaries_used(self, binaries: List[str]) -> None: targets = FecDataView.get_executable_targets() files = set() for target in targets.binaries: From 8ccbcc30cb2480e7b902f195eadc0a811407518c Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Thu, 5 Feb 2026 11:02:11 +0000 Subject: [PATCH 4/6] docs --- spinnaker_testbase/root_test_case.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/spinnaker_testbase/root_test_case.py b/spinnaker_testbase/root_test_case.py index ad6920c..3a30100 100644 --- a/spinnaker_testbase/root_test_case.py +++ b/spinnaker_testbase/root_test_case.py @@ -128,9 +128,21 @@ def runsafe(self, method: Callable, retry_delay: float = 3.0, time.sleep(retry_delay) def check_binary_used(self, binary: str) -> None: + """ + Checks if the binary is used since the last call to sim.start + + :param binary: Name of the file (no path) to check + :raises AssertionError: If the binary is not used + """ self.check_binaries_used([binary]) def check_binaries_used(self, binaries: List[str]) -> None: + """ + Checks if the binaries are used since the last call to sim.start + + :param binary: List of names of the file (no path) to check + :raises AssertionError: If any binary is not used + """ targets = FecDataView.get_executable_targets() files = set() for target in targets.binaries: From 3076a6fe22267e49eefe7e8d5b297e7847395e34 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Thu, 5 Feb 2026 11:05:08 +0000 Subject: [PATCH 5/6] spelling --- spinnaker_testbase/root_test_case.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spinnaker_testbase/root_test_case.py b/spinnaker_testbase/root_test_case.py index 3a30100..e621802 100644 --- a/spinnaker_testbase/root_test_case.py +++ b/spinnaker_testbase/root_test_case.py @@ -129,7 +129,7 @@ def runsafe(self, method: Callable, retry_delay: float = 3.0, def check_binary_used(self, binary: str) -> None: """ - Checks if the binary is used since the last call to sim.start + Checks if the binary is used since the last call to start :param binary: Name of the file (no path) to check :raises AssertionError: If the binary is not used @@ -138,7 +138,7 @@ def check_binary_used(self, binary: str) -> None: def check_binaries_used(self, binaries: List[str]) -> None: """ - Checks if the binaries are used since the last call to sim.start + Checks if the binaries are used since the last call to start :param binary: List of names of the file (no path) to check :raises AssertionError: If any binary is not used From d1b369e2064a171a8a20008ad779d161e224430a Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Thu, 5 Feb 2026 11:09:03 +0000 Subject: [PATCH 6/6] fix docs --- spinnaker_testbase/root_test_case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spinnaker_testbase/root_test_case.py b/spinnaker_testbase/root_test_case.py index e621802..fc48696 100644 --- a/spinnaker_testbase/root_test_case.py +++ b/spinnaker_testbase/root_test_case.py @@ -140,7 +140,7 @@ def check_binaries_used(self, binaries: List[str]) -> None: """ Checks if the binaries are used since the last call to start - :param binary: List of names of the file (no path) to check + :param binaries: List of names of the file (no path) to check :raises AssertionError: If any binary is not used """ targets = FecDataView.get_executable_targets()