From 4421b1708552302a7c1ddd10199f88644d8d3e10 Mon Sep 17 00:00:00 2001 From: aldbr Date: Mon, 9 Dec 2024 13:40:20 +0100 Subject: [PATCH] sweep: #7940 fix: RemoteRunner integrity failures with std.out --- .../WorkloadManagementSystem/Utilities/RemoteRunner.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py b/src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py index 2f1ea7731e3..5a2eb8a13e5 100644 --- a/src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py +++ b/src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py @@ -63,6 +63,12 @@ def execute(self, command, workingDirectory=".", numberOfProcessors=1, cleanRemo # Get inputs from the current working directory inputs = os.listdir(workingDirectory) inputs.remove(os.path.basename(self.executable)) + # We need to remove the standard output/error files if present + # as they might change during the execution of the application and fail the integrity check + if "std.out" in inputs: + inputs.remove("std.out") + if "std.err" in inputs: + inputs.remove("std.err") self.log.verbose("The executable will be sent along with the following inputs:", ",".join(inputs)) # Request the whole directory as output outputs = ["/"]