Show the command and its stdout message when fails #88

Merged
merged 7 commits into from May 7, 2013

Conversation

Projects
None yet
1 participant
@mizzy
Owner

mizzy commented May 5, 2013

No description provided.

mizzy added some commits May 5, 2013

Revert "Hack for getting stdout, stderr, exit status in 1.8"
SSH with pty merge stderr to stdout, so do same thing with local exec.

This reverts commit 043e769.

Conflicts:

	lib/serverspec/backend/exec.rb
Set command and its stdout/stderr to example.metadata
In ssh access with pty, stderr is merged to stdout.So serverspec also merge stderr to stdin in exec backend for the integrity.

See http://stackoverflow.com/questions/7937651/receiving-extended-data-with-ssh-using-twisted-conch-as-client
Override RSpec::Matchers::DSL::Matcher.failure_message_for_should
To save a step to write failure_message_for_should in each matcher.
Set example to instance variable to set command and its result to it
This is for showing command and its result with failure_message

mizzy added a commit that referenced this pull request May 7, 2013

Merge pull request #88 from mizzy/set-failure-message
Show the command and its stdout message when fails

@mizzy mizzy merged commit f927f9b into master May 7, 2013

1 check passed

default The Travis build passed
Details

@mizzy mizzy deleted the set-failure-message branch May 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment