-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
context: produce consistent output on context create
.
#1874
context: produce consistent output on context create
.
#1874
Conversation
Linter is complaining
|
24b6c8a
to
bd7882e
Compare
Oops, I got distracted right at the point I was supposed to write that comment. Now done. |
Codecov Report
@@ Coverage Diff @@
## master #1874 +/- ##
==========================================
+ Coverage 56.74% 56.76% +0.01%
==========================================
Files 309 309
Lines 21676 21676
==========================================
+ Hits 12301 12305 +4
+ Misses 8476 8472 -4
Partials 899 899 |
Refactor `RunCreate` slightly so that all three paths always produce the same output, namely the name of the new context of `stdout` (for scripting) and the success log message on `stderr`. Validate by extending the existing unit tests to always check the output is as expected. Signed-off-by: Ian Campbell <ijc@docker.com>
bd7882e
to
ff44305
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐴
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Refactor
RunCreate
slightly so that all three paths always produce the sameoutput, namely the name of the new context of
stdout
(for scripting) and thesuccess log message on
stderr
.Validate by extending the existing unit tests to always check the output is as
expected.
Signed-off-by: Ian Campbell ijc@docker.com
- What I did
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)