Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Test backend attachment
"""
import pytest
from pathlib import Path

from DIRAC.FrameworkSystem.private.standardLogging.test.TestLogUtilities import gLogger, gLoggerReset, cleaningLog

Expand Down Expand Up @@ -146,3 +147,11 @@ def test_registerBackendgLogger(backends):
for backend, params in backends.items():
content = params["extractBackendContent"](params["backendOptions"])
assert content == params["backendContent"]

# Clean up backend temp output files
for params in backends.values():
fName = params.get("backendOptions", {}).get("FileName", None)
if fName:
fPath = Path(fName)
if fPath.exists():
fPath.unlink()
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,8 @@ def test_execute(mocker, executable, args, src, expectedResult):

if os.path.exists("std.out"):
os.remove("std.out")
if os.path.exists("DISABLE_WATCHDOG_CPU_WALLCLOCK_CHECK"):
os.remove("DISABLE_WATCHDOG_CPU_WALLCLOCK_CHECK")


# -------------------------------------------------------------------------------------------------
Expand Down
Loading