From fd0ba7be0775fe804bc6c20f538d722705b8ea4a Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 18 Dec 2019 12:59:48 -0600 Subject: [PATCH] tools/tinytest-codegen.py: Add extra newline and result message. This is an alternative to f4ed2df that adds a newline so that the output of the test starts on a new line and the result of the test is prefixed with "result: " to distinguish it from the test output. Suggested-by: @dpgeorge --- tools/tinytest-codegen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/tinytest-codegen.py b/tools/tinytest-codegen.py index 7580522ee..424f70a9f 100755 --- a/tools/tinytest-codegen.py +++ b/tools/tinytest-codegen.py @@ -33,8 +33,10 @@ test_function = ( "void {name}(void* data) {{\n" " static const char pystr[] = {script};\n" " static const char exp[] = {output};\n" + ' printf("\\n");\n' " upytest_set_expected_output(exp, sizeof(exp) - 1);\n" " upytest_execute_test(pystr);\n" + ' printf("result: ");\n' "}}" )