Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Only adding the stderr to stdout when stderr is non-empty in TimedCom…
Browse files Browse the repository at this point in the history
…mand
  • Loading branch information
PalNilsson committed May 3, 2018
1 parent 11f040c commit 0c25085
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,13 @@ M movers/lsm_sitemover.py (6)

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

72.10 - HOTFIX

QMUL metadata fix
- Only adding the stderr to stdout when stderr is non-empty (to revent messed up metadata in storm mover), in run() (TimedCommand)

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

TODO:

todo: remove the explicit usages of schedconfig.lfchost and replace with an experiment specific method (getFileCatalog())
Expand Down
2 changes: 1 addition & 1 deletion PILOTVERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
PICARD 72.9
PICARD 72.10
3 changes: 2 additions & 1 deletion TimerCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def target():
self.stderr = ''
if not self.stdout:
self.stdout = ''
self.stdout += " Error: " + self.stderr
if self.stderr and self.stderr != '':
self.stdout += " Error: " + self.stderr

if self.process:
returncode = self.process.returncode
Expand Down

0 comments on commit 0c25085

Please sign in to comment.