Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable logging to the console from ovstest.
By default, OVN and OVS errors and warnings are written to stderr. GNU Autotest automatically fails a test if unexpected data is written to stderr. This causes two problems: 1) Unit tests that attempt off-nominal code paths may fail because of a warning message in OVN or OVS. To get around this, it is common for tests to pass "[ignore]" to AT_CHECK's stderr parameter so that OVN/OVS log messages do not cause failures. But... 2) Passing "[ignore]" makes it so that unit tests cannot then print their own messages to stderr to help debug test failures. By disabling OVS/OVN log messages from going to the console, we allow for tests to write their own messages to stderr. Signed-off-by: Mark Michelson <mmichels@redhat.com> Acked-by: Dumitru Ceara <dceara@redhat.com>
- Loading branch information
Showing
2 changed files
with
35 additions
and
18 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