Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only return stdout when running commands for integration tests #363

Merged
merged 1 commit into from
Sep 25, 2018

Conversation

priyawadhwa
Copy link
Collaborator

When running container-diff in integration tests, both stdout and stderr were being returned
and unmarshalled into the container-diff json object. If container-diff
was giving any error messages (such as, if it didn't have permissions to
extract a file), this would fail even if ultimately no
differences between the filesystems were found.

I updated the RunCommands to only return stdout and print stderr if the
command fails.

This should fix the failing test in #360

When running container-diff in integration tests, both stdout and stderr were being returned
and unmarshalled into the container-diff json object. If container-diff
was giving any error messages (such as, if it didn't have permissions to
extract a file), this would fail even if ultimately no
differences between the filesystems existed.

I updated the RunCommands to only return stdout and print stderr if the
command fails.
@priyawadhwa priyawadhwa merged commit bb0df68 into GoogleContainerTools:master Sep 25, 2018
@priyawadhwa priyawadhwa deleted the exists branch September 25, 2018 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants