GRM-26: fix: CI pipeline for rootless Docker runners
This commit was merged in pull request #5.
This commit is contained in:
@@ -111,12 +111,9 @@ class TestAnsibleExecutorExtractStatus:
|
||||
executor = AnsibleExecutor()
|
||||
log_file = tmp_path / "test.log"
|
||||
log_file.write_text("incomplete")
|
||||
log_file.chmod(0o000)
|
||||
try:
|
||||
with patch("gitea_runner_manager.executor.open", side_effect=OSError("read error")):
|
||||
status = executor._extract_status(log_file)
|
||||
assert status is None
|
||||
finally:
|
||||
log_file.chmod(0o644)
|
||||
assert status is None
|
||||
|
||||
|
||||
class TestAnsibleExecutorPrepareLog:
|
||||
|
||||
Reference in New Issue
Block a user