summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorGuilherme Gallo <guilherme.gallo@collabora.com>2023-04-19 11:31:47 -0300
committerMarge Bot <emma+marge@anholt.net>2023-04-19 14:36:37 +0000
commitd6b30d42b05a93aa80c93c7fcc1782f9c59a6f1a (patch)
treee7565eeccf3e8b285070bd421a775bc815ea3124 /.gitlab-ci
parenta893b06691fe9b68f6b467fd8dd33fcda1da5c1b (diff)
downloadmesa-d6b30d42b05a93aa80c93c7fcc1782f9c59a6f1a.tar.gz
ci/lava: Skip regression test if LAVA log file is not present
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22500>
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/tests/test_lava_job_submitter.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitlab-ci/tests/test_lava_job_submitter.py b/.gitlab-ci/tests/test_lava_job_submitter.py
index f8208a3a781..945110eb1b8 100644
--- a/.gitlab-ci/tests/test_lava_job_submitter.py
+++ b/.gitlab-ci/tests/test_lava_job_submitter.py
@@ -329,6 +329,9 @@ def test_parse_job_result_from_log(message, expectation, mock_proxy):
@pytest.mark.slow(
reason="Slow and sketchy test. Needs a LAVA log raw file at /tmp/log.yaml"
)
+@pytest.mark.skipif(
+ not Path("/tmp/log.yaml").is_file(), reason="Missing /tmp/log.yaml file."
+)
def test_full_yaml_log(mock_proxy, frozen_time, lava_job_submitter):
import random