Skip to content

Commit f1392d6

Browse files
authored
Merge pull request #11695 from jeromecoutant/PR_GREENTEA_TRACE
GREENTEA: init trace if trace is enabled in json
2 parents 87b150a + 0d678e9 commit f1392d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

features/frameworks/greentea-client/source/greentea_test_env.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "greentea-client/test_env.h"
2424
#include "greentea-client/greentea_serial.h"
2525
#include "greentea-client/greentea_metrics.h"
26-
26+
#include "mbed_trace.h"
2727

2828
/**
2929
* Generic test suite transport protocol keys
@@ -84,6 +84,10 @@ void _GREENTEA_SETUP_COMMON(const int timeout, const char *host_test_name, char
8484
}
8585
}
8686

87+
#ifdef MBED_CONF_MBED_TRACE_ENABLE
88+
mbed_trace_init();
89+
#endif
90+
8791
greentea_notify_version();
8892
greentea_notify_timeout(timeout);
8993
greentea_notify_hosttest(host_test_name);

0 commit comments

Comments
 (0)