From d6b30d42b05a93aa80c93c7fcc1782f9c59a6f1a Mon Sep 17 00:00:00 2001 From: Guilherme Gallo Date: Wed, 19 Apr 2023 11:31:47 -0300 Subject: [PATCH] ci/lava: Skip regression test if LAVA log file is not present Signed-off-by: Guilherme Gallo Part-of: --- .gitlab-ci/tests/test_lava_job_submitter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci/tests/test_lava_job_submitter.py b/.gitlab-ci/tests/test_lava_job_submitter.py index f8208a3..945110e 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 -- 2.7.4