Skip to content

Commit

Permalink
tests: make it slightly easier to set a custom ppa install source
Browse files Browse the repository at this point in the history
  • Loading branch information
orndorffgrant committed Feb 2, 2024
1 parent 86a9992 commit c5ad77a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion features/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,13 @@ def from_environ(cls, config) -> "UAClientBehaveConfig":
kwargs[key] = bool_value

if "install_from" in kwargs:
kwargs["install_from"] = InstallationSource(kwargs["install_from"])
if str(kwargs["install_from"]).startswith("ppa:"):
kwargs["custom_ppa"] = kwargs["install_from"]
kwargs["install_from"] = InstallationSource.CUSTOM
else:
kwargs["install_from"] = InstallationSource(
kwargs["install_from"]
)

return cls(**kwargs) # type: ignore

Expand Down

0 comments on commit c5ad77a

Please sign in to comment.