Skip to content

Commit

Permalink
a failed job does to get its output.tar uploaded to grid storage
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Mar 12, 2024
1 parent 596817f commit 4748df7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests_dirac/test_it.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4748df7

Please sign in to comment.