Unify log level for tests
Merge from Widevine repo of http://go/wvgerrit/79463 and http://go/wvgerrit/82383 Several tests explicitly set the log level. This CL unifies that a little bit. When running the unit tests by hand, on android or for ce cdm, the log level is 0 (ERROR) and can be incremented on the command line using the "--verbose" switch. When running on the desktop, you can set the environment variable VERBOSE_LOG to "yes", and the log level is set to VERBOSE. This is done by the buildbot so you can see full logs in the build archive. When running with the test bed (i.e. Mod Mock) you can edit the options.txt file and set log_level to 0=ERROR up to 4=VERBOSE. if you are using the run_current_tests script, you can create a file in the linux directory called override_options.txt and add the line log_level 4 This CL only changes test code. bug: 124390006 Test: unit tests Change-Id: I1e042004692750e218b8c4220bce3ec1e387004e
This commit is contained in:
@@ -130,7 +130,6 @@ class OEMCryptoClientTest : public ::testing::Test, public SessionUtil {
|
||||
|
||||
void SetUp() override {
|
||||
::testing::Test::SetUp();
|
||||
wvcdm::g_cutoff = wvcdm::LOG_INFO;
|
||||
const ::testing::TestInfo* const test_info =
|
||||
::testing::UnitTest::GetInstance()->current_test_info();
|
||||
LOGD("Running test %s.%s", test_info->test_case_name(), test_info->name());
|
||||
|
||||
Reference in New Issue
Block a user