Refactor the LAVA farm detection to use a simpler environment variable-based approach: - Remove the complex regex-based farm detection - Replace LavaFarm enum with a simple string-based farm identification - Update related tests and job definition logic - Remove hypothesis testing dependency Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33888>
7 lines
179 B
Python
7 lines
179 B
Python
from lava.utils.lava_farm import get_lava_farm
|
|
|
|
|
|
def test_get_lava_farm_no_tag(monkeypatch):
|
|
monkeypatch.delenv("FARM", raising=False)
|
|
assert get_lava_farm() == "unknown"
|