fixes when no equal sign in label file#1416
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1416 +/- ##
==========================================
+ Coverage 54.26% 54.39% +0.13%
==========================================
Files 289 289
Lines 19331 19268 -63
==========================================
- Hits 10490 10481 -9
+ Misses 8165 8115 -50
+ Partials 676 672 -4 |
thaJeztah
left a comment
There was a problem hiding this comment.
Haven't checked yet, but is this same function also used for env-files? If so, should it behave the same?
We should at least have a test for this, as the behavior of empty values vs not-set is already tricky, so easy to introduce regressions / change in behavior
Yeah, but for |
|
Thank you for all your review, I'll add some test cases. |
ee54671 to
a2bea38
Compare
lifubang
left a comment
There was a problem hiding this comment.
I have add two test cases for label/env file without equal sign.
|
@thaJeztah I don't know if I have understood your points. Do you mean add some test cases, or change code to check the lines value? |
|
ping @thaJeztah |
a2bea38 to
17c1fa2
Compare
|
Cleaning up old PRs; I thought this was fixed, but indeed looks like the "no value set" omits the label; still need to look if that was or was not by design, but did a quick rebase, and updated the patch to make the new tests added in this PR pass. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
17c1fa2 to
e559a45
Compare
Signed-off-by: Lifubang <lifubang@acmcoder.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
e559a45 to
6a201f3
Compare
Signed-off-by: Lifubang lifubang@acmcoder.com
- What I did
When use --label:
./build/docker run -d --name=redis5 --label foo redisWhen use --label-file:
label foo is lost.
The behavior of --label and --label-file is different when there is no equal sign after label variable.
- How I did it
When there is no equal sign after label variable, and no emptyFn, add it to output.
- How to verify it
After fix:
- Description for the changelog
fixes when no equal sign in label file
- A picture of a cute animal (not mandatory but encouraged)
