From 60a56f2c9fdfd722354c4e2a8991de7af60ecb51 Mon Sep 17 00:00:00 2001 From: Grant Orndorff Date: Mon, 29 Jan 2024 10:02:10 -0500 Subject: [PATCH] tests: make it slightly easier to set a custom ppa install source --- features/environment.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/features/environment.py b/features/environment.py index d89c848c67..9bf4eff552 100644 --- a/features/environment.py +++ b/features/environment.py @@ -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 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