diff --git a/src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py b/src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py index 7125887fd4d..3bcf20f78a4 100644 --- a/src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py +++ b/src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py @@ -87,6 +87,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 = ["/"]