Skip to content

Commit

Permalink
Runnable identifier: use the actual configuration
Browse files Browse the repository at this point in the history
A runnable will have its configuration updated by the suite (and job)
configuration at suite creation time.  This configuration should be
used, and not the one at the time the Runnable was crated, to set the
runnable identifier.

Signed-off-by: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu committed Jun 26, 2024
1 parent 2f55d12 commit 3d45f37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions avocado/core/nrunner/runnable.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ def __init__(self, kind, uri, *args, config=None, **kwargs):
#: expressing assets that the test will require in order to run.
self.assets = kwargs.pop("assets", None)
self.kwargs = kwargs
self._identifier_format = config.get("runner.identifier_format", "{uri}")

def __repr__(self):
fmt = (
Expand Down Expand Up @@ -157,7 +156,7 @@ def identifier(self):
Since this is formatter, combined values can be used. Example:
"{uri}-{args}".
"""
fmt = self._identifier_format
fmt = self.config.get("runner.identifier_format", "{uri}")

# For the cases where there is no config (when calling the Runnable
# directly
Expand Down

0 comments on commit 3d45f37

Please sign in to comment.