shill: Provide a way to control logging verbosity in unit tests.
BUG=none
TEST=GTEST_ARGS=--v=2 FEATURES=test emerge-x86-mario -1 shill
Change-Id: I2fd262081da4d989e61df0aea79e609ec15d5c01
Reviewed-on: http://gerrit.chromium.org/gerrit/6197
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
diff --git a/testrunner.cc b/testrunner.cc
index f31439e..ca14d19 100644
--- a/testrunner.cc
+++ b/testrunner.cc
@@ -3,10 +3,14 @@
// found in the LICENSE file.
#include <base/at_exit.h>
+#include <base/command_line.h>
+#include <chromeos/syslog_logging.h>
#include <gtest/gtest.h>
int main(int argc, char** argv) {
base::AtExitManager exit_manager;
+ CommandLine::Init(argc, argv);
+ chromeos::InitLog(chromeos::kLogToStderr);
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}