From 4748df7e8ae3882fd8c127118f8439c7311039b0 Mon Sep 17 00:00:00 2001 From: Stefan Verhoeven Date: Tue, 12 Mar 2024 10:10:03 +0100 Subject: [PATCH] a failed job does to get its output.tar uploaded to grid storage --- tests_dirac/test_it.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests_dirac/test_it.py b/tests_dirac/test_it.py index e3a7170..a199cb8 100644 --- a/tests_dirac/test_it.py +++ b/tests_dirac/test_it.py @@ -242,7 +242,10 @@ async def test_failing_job( # noqa: WPS217 single piece of code for readablilty assert "icannotwork" in stdout assert "idonotexist" in stderr - await fs.download(gdescription, description) + with pytest.raises(RuntimeError, match="No such file or directory"): + # a failed job does to get its output.tar uploaded to grid storage + await fs.download(gdescription, description) + files_in_job_dir = list(job_dir.iterdir()) # stdout.txt and stderr.txt, which is side effect of logs() assert len(files_in_job_dir) == 2