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
ethdev: remove rte_pmd_init_all function
[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
f276949
..
9b7e4a1
100644
(file)
--- a/
app/test/autotest_test_funcs.py
+++ b/
app/test/autotest_test_funcs.py
@@
-2,7
+2,7
@@
# BSD LICENSE
#
# BSD LICENSE
#
-# Copyright(c) 2010-201
3
Intel Corporation. All rights reserved.
+# Copyright(c) 2010-201
4
Intel Corporation. All rights reserved.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@
-59,7
+59,7
@@
def dump_autotest(child, test_name):
# reads output and waits for Test OK
def memory_autotest(child, test_name):
child.sendline(test_name)
# reads output and waits for Test OK
def memory_autotest(child, test_name):
child.sendline(test_name)
- regexp = "phys:0x[0-9a-f]*, len:
0x([0-9a-f
]*), virt:0x[0-9a-f]*, socket_id:[0-9]*"
+ regexp = "phys:0x[0-9a-f]*, len:
([0-9
]*), virt:0x[0-9a-f]*, socket_id:[0-9]*"
index = child.expect([regexp, pexpect.TIMEOUT], timeout = 180)
if index != 0:
return -1, "Fail [Timeout]"
index = child.expect([regexp, pexpect.TIMEOUT], timeout = 180)
if index != 0:
return -1, "Fail [Timeout]"
@@
-190,7
+190,7
@@
def timer_autotest(child, test_name):
elif index == 2:
return -1, "Fail [Timeout]"
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)
"Test Failed",
pexpect.TIMEOUT], timeout = 40)
@@
-199,6
+199,15
@@
def timer_autotest(child, test_name):
elif index == 2:
return -1, "Fail [Timeout]"
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
prev_lcore_timer1 = -1
lcore_tim0 = -1