Skip to content

Commit 9081eda

Browse files
authored
Merge pull request DIRACGrid#7941 from DIRACGridBot/cherry-pick-2-d15568d3b-integration
[sweep:integration] fix: RemoteRunner integrity failures with std.out
2 parents c4b7a6e + 4421b17 commit 9081eda

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/DIRAC/WorkloadManagementSystem/Utilities/RemoteRunner.py

+6
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ def execute(self, command, workingDirectory=".", numberOfProcessors=1, cleanRemo
6363
# Get inputs from the current working directory
6464
inputs = os.listdir(workingDirectory)
6565
inputs.remove(os.path.basename(self.executable))
66+
# We need to remove the standard output/error files if present
67+
# as they might change during the execution of the application and fail the integrity check
68+
if "std.out" in inputs:
69+
inputs.remove("std.out")
70+
if "std.err" in inputs:
71+
inputs.remove("std.err")
6672
self.log.verbose("The executable will be sent along with the following inputs:", ",".join(inputs))
6773
# Request the whole directory as output
6874
outputs = ["/"]

0 commit comments

Comments
 (0)