diff mbox series

tests/TestSuite_unit_tests_event_timer.py: Added an identifier for the "test" app.

Message ID 20210222111928.21243-1-skalal@marvell.com (mailing list archive)
State Accepted
Headers show
Series tests/TestSuite_unit_tests_event_timer.py: Added an identifier for the "test" app. | expand

Commit Message

skalal@marvell.com Feb. 22, 2021, 11:19 a.m. UTC
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(-)

Comments

Tu, Lijuan April 7, 2021, 5:38 a.m. UTC | #1
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of skalal@marvell.com
> Sent: 2021年2月22日 19:19
> 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.
> 
> From: skalal <skalal@marvell.com>
> 
> Signed-off-by: skalal <skalal@marvell.com>

Applied, thanks
diff mbox series

Patch

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.