From 169aacdf890a52175ed89580fcb7bf40d264449d Mon Sep 17 00:00:00 2001 From: Guo Lixin Date: Tue, 31 May 2022 10:04:03 +0800 Subject: [PATCH] tests: cumstom_output: change output to fit twister Since output can be cumstomized, so slightly change the output format, so that twister can parse the output and collect the passrate correctly. Signed-off-by: Guo Lixin --- .../custom_output/include/tc_util_user_override.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ztest/custom_output/include/tc_util_user_override.h b/tests/ztest/custom_output/include/tc_util_user_override.h index ec0d122165..83dc2d694e 100644 --- a/tests/ztest/custom_output/include/tc_util_user_override.h +++ b/tests/ztest/custom_output/include/tc_util_user_override.h @@ -21,16 +21,16 @@ } while (0) /* Example: Change result string output formats. */ -#define TC_PASS_STR "(PASS)" -#define TC_FAIL_STR "[FAILED]" -#define TC_SKIP_STR "{SKIPPED}" +#define TC_PASS_STR "Customized PASS" +#define TC_FAIL_STR "Customized FAIL" +#define TC_SKIP_STR "Customized SKIP" /* Example: Also count the number of pass/fail/skips and display it. */ #define Z_TC_END_RESULT(result, s) do { \ static int result_keeper[3] = {0}; \ result_keeper[result]++; \ - printk(" reported %s no. %d\n", \ - TC_RESULT_TO_STR(result), \ + printk(" reported %s - %s in 0 seconds(No time counted) no. %d\n", \ + TC_RESULT_TO_STR(result), s,\ result_keeper[result]); \ } while (0)