Skip to content

Commit

Permalink
Log the information about used remote beakerlib library
Browse files Browse the repository at this point in the history
  • Loading branch information
seberm committed Sep 18, 2024
1 parent 2bef9dd commit b0a27c3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tmt/libraries/beakerlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import tmt.log
import tmt.utils
import tmt.utils.git
from tmt.base import DependencyFmfId, DependencySimple
from tmt.base import DependencyFmfId, DependencySimple, FmfId
from tmt.convert import write
from tmt.steps.discover import Discover
from tmt.utils import Command, Environment, EnvVarValue, Path
Expand Down Expand Up @@ -330,6 +330,16 @@ def fetch(self) -> None:
self.parent.debug(f"Library {self} is copied into {directory}")
shutil.copytree(library_path, local_library_path, dirs_exist_ok=True)

fake_library_id = self.identifier if isinstance(
self.identifier, DependencyFmfId) else FmfId(
url=self.url, ref=self.ref, path=self.path, name=self.name)

self.parent.verbose(
'using remote git library',
cast(dict[str, str], fake_library_id.to_minimal_dict()),
'green',
level=3)

# Remove metadata file(s) and create one with full data
# Node with library might not exist, provide usable error message
try:
Expand Down

0 comments on commit b0a27c3

Please sign in to comment.