diff --git a/scripts/tests/chiptest/test_definition.py b/scripts/tests/chiptest/test_definition.py index a655fa894eb3c9..5b0f4a548f505c 100644 --- a/scripts/tests/chiptest/test_definition.py +++ b/scripts/tests/chiptest/test_definition.py @@ -283,7 +283,7 @@ def Run(self, runner, apps_register, paths: ApplicationPaths, pics_file: str, # happen if the relevant application does not exist. It's # non-fatal as long as we are not trying to run any tests that # need that application. - if len(path) == 1 and path[0] is None: + if path[-1] is None: continue # For the app indicated by self.target, give it the 'default' key to add to the register