Merge pull request #11695 from jeromecoutant/PR_GREENTEA_TRACE

GREENTEA: init trace if trace is enabled in json
pull/11770/head
Martin Kojtal 2019-10-29 15:13:31 +01:00 committed by GitHub
commit f1392d6b6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,7 @@
#include "greentea-client/test_env.h"
#include "greentea-client/greentea_serial.h"
#include "greentea-client/greentea_metrics.h"
#include "mbed_trace.h"
/**
* Generic test suite transport protocol keys
@ -84,6 +84,10 @@ void _GREENTEA_SETUP_COMMON(const int timeout, const char *host_test_name, char
}
}
#ifdef MBED_CONF_MBED_TRACE_ENABLE
mbed_trace_init();
#endif
greentea_notify_version();
greentea_notify_timeout(timeout);
greentea_notify_hosttest(host_test_name);