app/test: new timer test
[dpdk.git] / app / test / autotest_test_funcs.py
index f276949..414a190 100644 (file)
@@ -190,7 +190,7 @@ def timer_autotest(child, test_name):
        elif index == 2:
                return -1, "Fail [Timeout]"
 
-       index = child.expect(["Start timer basic tests \(20 seconds\)",
+       index = child.expect(["Start timer stress tests 2",
                "Test Failed",
                pexpect.TIMEOUT], timeout = 40)
 
@@ -199,6 +199,15 @@ def timer_autotest(child, test_name):
        elif index == 2:
                return -1, "Fail [Timeout]"
 
+       index = child.expect(["Start timer basic tests \(20 seconds\)",
+               "Test Failed",
+               pexpect.TIMEOUT], timeout = 20)
+
+       if index == 1:
+               return -1, "Fail"
+       elif index == 2:
+               return -1, "Fail [Timeout]"
+
        prev_lcore_timer1 = -1
 
        lcore_tim0 = -1