diff mbox series

[06/38] tests-TestSuite_flow_classify.py:support meson build

Message ID 1599207525-22123-6-git-send-email-xix.zhang@intel.com (mailing list archive)
State Accepted
Headers show
Series Modify suite to support meson & makefile | expand

Commit Message

Zhang, XiX Sept. 4, 2020, 8:18 a.m. UTC
Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_flow_classify.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_flow_classify.py b/tests/TestSuite_flow_classify.py
index 213ae49..75410b3 100644
--- a/tests/TestSuite_flow_classify.py
+++ b/tests/TestSuite_flow_classify.py
@@ -319,7 +319,8 @@  class TestFlowClassify(TestCase):
             self.output_path, 'flow_classify', timestamp)
         with open(self.test_data, 'w') as fp:
             fp.write(output)
-        cmds = ['killall flow_classify', '# ', 10]
+        app_name=self.flow_classify.split("/")[-1]
+        cmds = ['killall %s'%app_name, '# ', 10]
         self.d_a_console(cmds)
 
     def get_stream_rule_priority(self, stream_type):
@@ -470,7 +471,8 @@  class TestFlowClassify(TestCase):
         self.dut_ports = self.dut.get_ports()
         self.verify(len(self.dut_ports) >= 2, "Insufficient ports")
         # set binary process setting
-        self.flow_classify = self.prepare_binary('flow_classify')
+        self.prepare_binary('flow_classify')
+        self.flow_classify =self.dut.apps_name["flow_classify"]
         self.verify_supported_nic()
 
     def set_up(self):