git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app/test: shorten execution time
[dpdk.git]
/
app
/
test
/
autotest_test_funcs.py
diff --git
a/app/test/autotest_test_funcs.py
b/app/test/autotest_test_funcs.py
index
adbd8c9
..
b60b941
100644
(file)
--- a/
app/test/autotest_test_funcs.py
+++ b/
app/test/autotest_test_funcs.py
@@
-83,7
+83,7
@@
def spinlock_autotest(child, test_name):
"Test Failed",
"Hello from core ([0-9]*) !",
"Hello from within recursive locks from ([0-9]*) !",
"Test Failed",
"Hello from core ([0-9]*) !",
"Hello from within recursive locks from ([0-9]*) !",
- pexpect.TIMEOUT], timeout =
20
)
+ pexpect.TIMEOUT], timeout =
5
)
# ok
if index == 0:
break
# ok
if index == 0:
break
@@
-178,9
+178,9
@@
def timer_autotest(child, test_name):
i = 0
child.sendline(test_name)
i = 0
child.sendline(test_name)
- index = child.expect(["Start timer stress tests
\(20 seconds\)
",
+ index = child.expect(["Start timer stress tests",
"Test Failed",
"Test Failed",
- pexpect.TIMEOUT], timeout =
10
)
+ pexpect.TIMEOUT], timeout =
5
)
if index == 1:
return -1, "Fail"
if index == 1:
return -1, "Fail"
@@
-189,16
+189,16
@@
def timer_autotest(child, test_name):
index = child.expect(["Start timer stress tests 2",
"Test Failed",
index = child.expect(["Start timer stress tests 2",
"Test Failed",
- pexpect.TIMEOUT], timeout =
40
)
+ pexpect.TIMEOUT], timeout =
5
)
if index == 1:
return -1, "Fail"
elif index == 2:
return -1, "Fail [Timeout]"
if index == 1:
return -1, "Fail"
elif index == 2:
return -1, "Fail [Timeout]"
- index = child.expect(["Start timer basic tests
\(20 seconds\)
",
+ index = child.expect(["Start timer basic tests",
"Test Failed",
"Test Failed",
- pexpect.TIMEOUT], timeout =
20
)
+ pexpect.TIMEOUT], timeout =
5
)
if index == 1:
return -1, "Fail"
if index == 1:
return -1, "Fail"
@@
-278,7
+278,7
@@
def timer_autotest(child, test_name):
def ring_autotest(child, test_name):
child.sendline(test_name)
index = child.expect(["Test OK", "Test Failed",
def ring_autotest(child, test_name):
child.sendline(test_name)
index = child.expect(["Test OK", "Test Failed",
- pexpect.TIMEOUT], timeout =
15
)
+ pexpect.TIMEOUT], timeout =
2
)
if index == 1:
return -1, "Fail"
elif index == 2:
if index == 1:
return -1, "Fail"
elif index == 2: