]> granicus.if.org Git - esp-idf/commitdiff
unit-test-app: use '-' to show test history
authorhouchenyao <houchenyao@espressif.com>
Wed, 31 Jan 2018 08:58:27 +0000 (16:58 +0800)
committerbot <bot@espressif.com>
Mon, 5 Feb 2018 06:58:22 +0000 (06:58 +0000)
tools/unit-test-app/components/unity/unity_platform.c

index fd979f0dae3de202e34fc99b381a9ff143c261b3..318e89f42ab5cc1894d57f60b7779722e4e58f9d 100644 (file)
@@ -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();