diff --git a/avocado/core/nrunner/runnable.py b/avocado/core/nrunner/runnable.py index 18fb29a8a5..5e7c43c895 100644 --- a/avocado/core/nrunner/runnable.py +++ b/avocado/core/nrunner/runnable.py @@ -158,9 +158,8 @@ def identifier(self): """ fmt = self.config.get("runner.identifier_format", "{uri}") - # For the cases where there is no config (when calling the Runnable - # directly - if not fmt: + # Optmize for the most common scenario + if fmt == "{uri}": return self.uri # For args we can use the entire list of arguments or with a specific