[dts][PATCH V1] tests/metrics: fix start wrong dpdk-proc-info path issue
Wei Ling
weix.ling at intel.com
Thu Jan 12 08:50:04 CET 2023
When using self.dut.alt_session.send_expect() API to create new seesion,
the current directory is /root, not the DPDK base directory, so add
swith to the DPDK base directory step before exectue the dpdk-proc-info
command to start the dpdk-proc-info APP.
Signed-off-by: Wei Ling <weix.ling at intel.com>
---
tests/TestSuite_metrics.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/TestSuite_metrics.py b/tests/TestSuite_metrics.py
index f3111ec6..d7262011 100644
--- a/tests/TestSuite_metrics.py
+++ b/tests/TestSuite_metrics.py
@@ -42,6 +42,7 @@ class TestMetrics(TestCase):
def d_a_con(self, cmd):
_cmd = [cmd, "# ", 10] if isinstance(cmd, str) else cmd
+ self.dut.alt_session.send_expect("cd %s" % self.dut.base_dir, "# ", 10)
output = self.dut.alt_session.send_expect(*_cmd)
output2 = self.dut.alt_session.session.get_session_before(2)
return output + os.linesep + output2
--
2.25.1
More information about the dts
mailing list