Fix magic env var value auto-splitting #1833
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
companionField
in handleEnvValue() is meant to be the other (key/value) field. It doesn't make sense to specify its own value, that just looked like a copy&paste error from the *-key input handler.With that you can type "FOO=bar" and get the automatic split. The test "cheated" with
set_val()
which sets all letters atomically. Test "RHUBARB=STRAWBERRY" separately with proper keyboard input.Splitting muliple variables can only work with an atomic value setting, i.e. the user doing copy&paste. Keep the
set_val()
bit and explain it, and also validate that the fields get created and split as expected.Spotted as part of #1832. It may help with the testRunImageUser failure, but it's confusing/obvious enough to be a good bug fix even if it doesn't fix that particular race.
I triggered an extra /firefox run.