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 = ["/"]