[dts] [PATCH V1] framework/pmd_output: add timeout parameter for start_pmd method
sunqin
qinx.sun at intel.com
Fri Apr 9 13:48:04 CEST 2021
some cases start testpmd with 'cmdline-file' may need more than 120 seconds,
so add 'timeout' parameter to support customization and default value still set as 120
Signed-off-by: sunqin <qinx.sun at intel.com>
---
framework/pmd_output.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/framework/pmd_output.py b/framework/pmd_output.py
index 1ad4ce79..838fa0bd 100644
--- a/framework/pmd_output.py
+++ b/framework/pmd_output.py
@@ -148,7 +148,8 @@ class PmdOutput():
command = command.replace(' ', ' ')
if self.session != self.dut:
self.session.send_expect("cd %s" % self.dut.base_dir, "# ")
- out = self.session.send_expect(command, expected, 120)
+ timeout = config.get('timeout',120)
+ out = self.session.send_expect(command, expected, timeout)
self.command = command
# wait 10s to ensure links getting up before test start.
sleep(10)
--
2.17.1
More information about the dts
mailing list