Files
mesa/.gitlab-ci/tests/utils/test_lava_farm.py
Guilherme Gallo 47659ddf70 ci: Simplify LAVA farm detection
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>
2025-03-08 02:45:02 +00:00

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"