ci/lava: Skip regression test if LAVA log file is not present
authorGuilherme Gallo <guilherme.gallo@collabora.com>
Wed, 19 Apr 2023 14:31:47 +0000 (11:31 -0300)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Apr 2023 14:36:37 +0000 (14:36 +0000)
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22500>

.gitlab-ci/tests/test_lava_job_submitter.py

index f8208a3..945110e 100644 (file)
@@ -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