* [dts][PATCH V1] tests/metrics: fix start wrong dpdk-proc-info path issue
@ 2023-01-12 7:50 Wei Ling
2023-01-13 2:45 ` lijuan.tu
0 siblings, 1 reply; 2+ messages in thread
From: Wei Ling @ 2023-01-12 7:50 UTC (permalink / raw)
To: dts; +Cc: Wei Ling
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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [dts][PATCH V1] tests/metrics: fix start wrong dpdk-proc-info path issue
2023-01-12 7:50 [dts][PATCH V1] tests/metrics: fix start wrong dpdk-proc-info path issue Wei Ling
@ 2023-01-13 2:45 ` lijuan.tu
0 siblings, 0 replies; 2+ messages in thread
From: lijuan.tu @ 2023-01-13 2:45 UTC (permalink / raw)
To: dts, Wei Ling; +Cc: Wei Ling
On Thu, 12 Jan 2023 15:50:04 +0800, Wei Ling <weix.ling@intel.com> wrote:
> 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@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-13 2:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-12 7:50 [dts][PATCH V1] tests/metrics: fix start wrong dpdk-proc-info path issue Wei Ling
2023-01-13 2:45 ` lijuan.tu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).