fix (test/extended/util) : shell doesn't parse command output ending without newline (#4416) #4417
+52
−2
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.
Description
Fix #4416
Type of change
test, version modification, documentation, etc.)
Checklist
Fixes: Issue #4416
Relates to: Issue #4397
Solution/Idea
ScanPipe should not assume that the entire line contains only the exit code token. It should extract the exit code token and write the remainder of the output to the output buffer.
Proposed changes
Do not assume that the entire output line contains only the exit code token. Extract any prefix and write it to the output buffer.
Testing
The test added in #4414 should pass once these changes get merged.