From: houchenyao Date: Wed, 31 Jan 2018 08:58:27 +0000 (+0800) Subject: unit-test-app: use '-' to show test history X-Git-Tag: v3.1-beta1~418^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb3c88fb2fda0f1be116c44dc797de18f1c9cc33;p=esp-idf unit-test-app: use '-' to show test history --- diff --git a/tools/unit-test-app/components/unity/unity_platform.c b/tools/unit-test-app/components/unity/unity_platform.c index fd979f0dae..318e89f42a 100644 --- a/tools/unit-test-app/components/unity/unity_platform.c +++ b/tools/unit-test-app/components/unity/unity_platform.c @@ -342,6 +342,12 @@ void unity_run_menu() print_test_menu(); } } + /*use '-' to show test history. Need to do it before UNITY_BEGIN cleanup history */ + if (cmdline[0] == '-') + { + UNITY_END(); + continue; + } UNITY_BEGIN();