From: <skalal@marvell.com>
To: <dts@dpdk.org>
Cc: <zzhou@marvell.com>, <pvukkisala@marvell.com>,
skalal <skalal@marvell.com>
Subject: [dts] [PATCH] tests/TestSuite_unit_tests_event_timer.py: Added an identifier for the "test" app.
Date: Mon, 22 Feb 2021 16:49:28 +0530 [thread overview]
Message-ID: <20210222111928.21243-1-skalal@marvell.com> (raw)
From: skalal <skalal@marvell.com>
Signed-off-by: skalal <skalal@marvell.com>
---
tests/TestSuite_unit_tests_event_timer.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/tests/TestSuite_unit_tests_event_timer.py b/tests/TestSuite_unit_tests_event_timer.py
index fcb54cf..22c316e 100644
--- a/tests/TestSuite_unit_tests_event_timer.py
+++ b/tests/TestSuite_unit_tests_event_timer.py
@@ -52,10 +52,11 @@ class TestUnitTestEventTimer(TestCase):
self.coremask = utils.create_mask(cores)
# Based on h/w type, choose how many ports to use
self.dut_ports = self.dut.get_ports()
+ self.app_name = self.dut.apps_name['test']
if self.nic == "cavium_a063" or self.nic == "cavium_a064":
self.eventdev_device_bus_id = "0002:0e:00.0"
- self.eventdev_device_id = "a0f9"
+ self.eventdev_device_id = "a0f9"
#### Bind evendev device ####
self.dut.bind_eventdev_port(port_to_bind=self.eventdev_device_bus_id)
@@ -65,7 +66,6 @@ class TestUnitTestEventTimer(TestCase):
self.eventdev_timer_device_bus_id = "0000:0a:01.0"
self.dut.bind_eventdev_port(port_to_bind=self.eventdev_timer_device_bus_id)
-
def set_up(self):
"""
Run before each test case.
@@ -78,15 +78,14 @@ class TestUnitTestEventTimer(TestCase):
"""
if self.nic == "cavium_a063" or self.nic == "cavium_a064":
- self.dut.send_expect("./%s/app/test -n 1 -c %s -w %s,single_ws=1,tim_stats_ena=1" % (self.target, self.coremask, self.eventdev_device_bus_id), "R.*T.*E.*>.*>", 60)
+ self.dut.send_expect("./%s -n 1 -c %s -w %s,single_ws=1,tim_stats_ena=1" % (self.app_name, self.coremask, self.eventdev_device_bus_id), "R.*T.*E.*>.*>", 60)
elif self.nic == "cavium_a034":
- self.dut.send_expect("./%s/app/test -n 1 -c %s -w %s,timvf_stats=1" % (self.target, self.coremask, self.eventdev_timer_device_bus_id), "R.*T.*E.*>.*>", 60)
+ self.dut.send_expect("./%s -n 1 -c %s -w %s,timvf_stats=1" % (self.app_name, self.coremask, self.eventdev_timer_device_bus_id), "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("event_timer_adapter_test", "RTE>>", 300)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
return 'SUCCESS'
-
def tear_down(self):
"""
Run after each test case.
--
2.9.5
next reply other threads:[~2021-04-01 11:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-22 11:19 skalal [this message]
2021-04-07 5:38 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210222111928.21243-1-skalal@marvell.com \
--to=skalal@marvell.com \
--cc=dts@dpdk.org \
--cc=pvukkisala@marvell.com \
--cc=zzhou@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).