Android [browser] tests only show summary output now?

12 views
Skip to first unread message

Anton Vayvod

unread,
Jul 2, 2015, 3:30:16 PM7/2/15
to jbud...@chromium.org, chromium-dev
Hi there,

When running Android content_browsertests recently, I noticed that the output changed from something like:

....
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from MediaSessionBrowserTest, where TypeParam = 
[ RUN      ] MediaSessionBrowserTest.ControlsNotUpdatedDueToSuspendSessionAction
[ERROR:unix_domain_server_socket_posix.cc(106)] Not implemented reached in virtual int net::UnixDomainServerSocket::GetLocalAddress(net::IPEndPoint *) const
[       OK ] MediaSessionBrowserTest.ControlsNotUpdatedDueToSuspendSessionAction (145 ms)
[----------] 1 test from MediaSessionBrowserTest (145 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (146 ms total)
[  PASSED  ] 1 test.
...

or more importantly:

...
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from MediaSessionBrowserTest, where TypeParam = 
[ RUN      ] MediaSessionBrowserTest.ControlsNoShowForTransient
[ERROR:unix_domain_server_socket_posix.cc(106)] Not implemented reached in virtual int net::UnixDomainServerSocket::GetLocalAddress(net::IPEndPoint *) const
../../content/browser/media/android/media_session_browsertest.cc:478: Failure
Mock function called more times than expected - returning directly.
    Function call: MediaSessionStateChanged(false, false)
         Expected: to be never called
           Actual: called once - over-saturated and active
[  FAILED  ] MediaSessionBrowserTest.ControlsNoShowForTransient, where TypeParam =  and GetParam() =  (147 ms)
[----------] 1 test from MediaSessionBrowserTest (148 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (149 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] MediaSessionBrowserTest.ControlsNoShowForTransient, where TypeParam =  and GetParam() = 
 1 FAILED TEST
stdout file created: /storage/emulated/0/.temp_stdout_159755762.txt
Passing command line file extra: /data/local/tmp/temp_file-1435857930-477347
command line file path: /data/local/tmp/temp_file-1435857930-477347
[INFO:test_support_android.cc(176)] MessagePumpForUIFactory already set, unable to override.
>>ScopedMainEntryLogger
Note: Google Test filter = MediaSessionBrowserTest.ControlsNoShowForTransient
...

for each test case to something like:

C   54.223s Main  ********************************************************************************
C   54.223s Main  Detailed Logs
C   54.223s Main  ********************************************************************************
C   54.223s Main  ********************************************************************************
C   54.223s Main  Summary
C   54.223s Main  ********************************************************************************
C   54.223s Main  [==========] 2 tests ran.
C   54.223s Main  [  PASSED  ] 1 test.
C   54.224s Main  [  FAILED  ] 1 test, listed below:
C   54.224s Main  [  FAILED  ] MediaSessionBrowserTest.ControlsNoShowForTransient (UNKNOWN)
C   54.224s Main  
C   54.224s Main  1 FAILED TEST
C   54.224s Main  ********************************************************************************

Seeing the reason why the test failed instead of UNKNOWN was very convenient. Now I have to look through logcat filtering by cr.native_test.

Is this a known problem after the test runner was refactored? Do I need to supply an extra command flag to the test runner?

I run the tests as following:
build/android/test_runner.py gtest --suite content_browsertests --gtest_filter MediaSessionBrowserTest.Controls*

Thanks,
Anton.
Reply all
Reply to author
Forward
0 new messages