Skip to content

Commit

Permalink
Put back stderr mocking (fails on Ubuntu)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-kotliar committed Oct 6, 2020
1 parent db0a322 commit fd11afb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cwl_airflow/utilities/cwl.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,13 +420,16 @@ def execute_workflow_step(
location=workflow_step_path
)

_stderr = sys.stderr # to trick the logger
sys.stderr = sys.__stderr__
step_outputs, step_status = executor(
slow_cwl_load(
workflow=workflow_step_path,
cwl_args=default_cwl_args),
job_data,
RuntimeContext(default_cwl_args)
)
sys.stderr = _stderr

if step_status != "success":
raise ValueError
Expand Down

0 comments on commit fd11afb

Please sign in to comment.