The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Feature #12673

There should be a Result#output that allows access to combined stderr & stdout

Added by Justin Stoller over 4 years ago. Updated over 4 years ago.

Status:ClosedStart date:02/15/2012
Priority:NormalDue date:
Assignee:Dominic Maraglia% Done:


Category:Harness DSL
Target version:-
Patch:None Branch:

We've Moved!

Ticket tracking is now hosted in JIRA:


Pieter mentioned this to me in discussion.

I think he can give his use case much better description than I, Pieter?


#1 Updated by Anonymous over 4 years ago

Specifically, as it stands you can make the following assertions:

assert_equal 'Warning!\n', stderr
assert_equal 'Yup, I did stuff\n', stdout

but information on whether the end user will see this:

Yup, I did stuff

or this:

Yup, I did stuff

is completely unknowable. This problem only gets worse as the length of content output to STDOUT and STDERR grows. Cases where STDERR and STDOUT print interleaved content is another layer of frustration atop that.

Having the end result for both streams combined gives you the ability to make better assertions about order, via the transitive property (if lines ‘A’ and ‘C’ went to STDERR, and ‘B’ went to STDOUT, then if the unified output was ‘A\nB\nC\n’ I know that ‘A’ printed to STDERR before ‘B’, and ‘C’ printed to STDERR afterwards).

#2 Updated by Dominic Maraglia over 4 years ago

  • Status changed from Unreviewed to Needs More Information

I understand the use case for this addition though I wonder how many tests cases will need to check the ordering of STDOUT/STDERR output.

Do you suggest creating an entirely new output stream that replaces both STDERR and STDOUT? Or would we would be adding an additional stream, not eliminating STDOUT and STDERR, correct?

#3 Updated by Anonymous over 4 years ago

The expectation is that this would be in addition to STDOUT and STDERR.

#4 Updated by Justin Stoller over 4 years ago

  • Category set to Harness DSL
  • Status changed from Needs More Information to In Topic Branch Pending Review

Pull Request here:

#5 Updated by Justin Stoller over 4 years ago

  • Assignee changed from Anonymous to Dominic Maraglia

#6 Updated by Justin Stoller over 4 years ago

  • Status changed from In Topic Branch Pending Review to Closed

Merged here:

Also available in: Atom PDF