This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exec: cleanly separate stdout/stderr
Commit 40ba355 intentionally captured stderr in the output because earlier it was hard to understand why LVM commands failed. However, we now learned the some error messages can be safely ignored and not doing so broke LVM mode: when /dev/sda is unreadable, "vgs" prints a line about it on stderr, but the output on stdout is fine. Now we capture both output streams separately, log both, but only return stdout to the caller. The TestResult call is unrelated to that fix and will be used for additional debugging in another PR. It gets added here because it can use the same test cases and is related. (cherry picked from commit 3a7c354)
- Loading branch information
Showing
2 changed files
with
149 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters