diff --git a/features/frameworks/greentea-client/source/greentea_test_env.cpp b/features/frameworks/greentea-client/source/greentea_test_env.cpp index 584a8b24172..cda381f36d4 100644 --- a/features/frameworks/greentea-client/source/greentea_test_env.cpp +++ b/features/frameworks/greentea-client/source/greentea_test_env.cpp @@ -740,6 +740,7 @@ static int gettok(char *out_str, const int str_size) { if (LastChar == '}') { LastChar = greentea_getc(); if (LastChar == '}') { + greentea_getc(); //offset the extra '\n' send by Greentea python tool LastChar = '!'; return tok_close; }