improve custom event listener error reporting

During multi process test execution it may be difficult to propery read
output from tests. Output lines maybe mixed so determining things like
hardware or random seed becomes difficult.

This change adds extra data to output:
  [  FAILED  ][ BDW ][ 35357 ] <test name>
  [  FAILED  ][ BDW ][ 35358 ] <test name>

From this we can easily find that test failed on BDW with
gtest_seed=35357 and 35358.

Change-Id: I21e0767162d390f56dd270b1ba8650664c3898b5
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2018-08-14 13:45:58 +02:00
committed by sys_ocldev
parent a9da118e11
commit 01ec633182
2 changed files with 41 additions and 29 deletions

View File

@ -357,7 +357,7 @@ int main(int argc, char **argv) {
if (useDefaultListener == false) {
auto defaultListener = listeners.default_result_printer();
auto customEventListener = new CCustomEventListener(defaultListener);
auto customEventListener = new CCustomEventListener(defaultListener, hardwarePrefix[productFamily]);
listeners.Release(defaultListener);
listeners.Append(customEventListener);