-
Notifications
You must be signed in to change notification settings - Fork 3k
Changes in greentea-client for uvisor-tests-standalone integration #2702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,7 @@ static void greentea_notify_timeout(const int); | |
static void greentea_notify_hosttest(const char *); | ||
static void greentea_notify_completion(const int); | ||
static void greentea_notify_version(); | ||
static void greentea_write_string(const char *str); | ||
|
||
/** \brief Handshake with host and send setup data (timeout and host test name) | ||
* \details This function will send preamble to master. | ||
|
@@ -72,6 +73,7 @@ void GREENTEA_SETUP(const int timeout, const char *host_test_name) { | |
char _value[48] = {0}; | ||
while (1) { | ||
greentea_parse_kv(_key, _value, sizeof(_key), sizeof(_value)); | ||
greentea_write_string("mbedmbedmbedmbedmbedmbedmbedmbed\r\n"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason we are writing this back? I know we write a similar string from htrun, though I admit I'm not sure why :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Its not writing back. I have observed multiple times that at the start of test when we start reading serial output from the target. |
||
if (strcmp(_key, GREENTEA_TEST_ENV_SYNC) == 0) { | ||
// Found correct __sunc message | ||
greentea_send_kv(_key, _value); | ||
|
@@ -207,6 +209,7 @@ inline void greentea_write_postamble() | |
{ | ||
greentea_serial->putc('}'); | ||
greentea_serial->putc('}'); | ||
greentea_serial->putc('\r'); | ||
greentea_serial->putc('\n'); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So these two functions always had an implementation in greentea-client, they were just never exposed via
test_env.h
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. That's because of these functions were declared extern in utest and called due to some circular dependency.