test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] tests/meson_tests: fix hardcode issue
@ 2023-01-13  7:05 Dukai Yuan
  2023-01-13  7:59 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Dukai Yuan @ 2023-01-13  7:05 UTC (permalink / raw)
  To: dts; +Cc: Dukai Yuan

The target name is hardcode, so that can't cover other target,
such as `x86_64-native-linuxapp-clang`, so fix hardcode issue.

Signed-off-by: Dukai Yuan <dukaix.yuan@intel.com>
---
 tests/TestSuite_meson_tests.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_meson_tests.py b/tests/TestSuite_meson_tests.py
index 738affa7..a0bba9b0 100644
--- a/tests/TestSuite_meson_tests.py
+++ b/tests/TestSuite_meson_tests.py
@@ -140,7 +140,7 @@ class TestMesonTests(TestCase):
         self.delete_exists_files()
         self.insmod_kni()
         # config test case list in conf/meson_tests.cfg
-        cmds = f"meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:fast-tests {param} |tee /tmp/{self.dut_pathlog}"
+        cmds = f"meson test -C {self.target} --suite DPDK:fast-tests {param} |tee /tmp/{self.dut_pathlog}"
         out = self.dut.send_expect(cmds, "# ", self.execute_wait_time)
         self.logger.info(out)
         self.copy_file_from_dut()
@@ -151,7 +151,7 @@ class TestMesonTests(TestCase):
         # init file name
         self.dut_pathlog = "driver-test.log"
         self.delete_exists_files()
-        cmds = f"meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:driver-tests {param} |tee /tmp/{self.dut_pathlog}"
+        cmds = f"meson test -C {self.target} --suite DPDK:driver-tests {param} |tee /tmp/{self.dut_pathlog}"
         out = self.dut.send_expect(cmds, "# ", self.execute_wait_time)
         self.logger.info(out)
         self.copy_file_from_dut()
@@ -162,7 +162,7 @@ class TestMesonTests(TestCase):
         self.dut_pathlog = "test-debug.log"
         # delete exists files
         self.delete_exists_files()
-        cmds = f"meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:debug-tests {param} |tee /tmp/{self.dut_pathlog}"
+        cmds = f"meson test -C {self.target} --suite DPDK:debug-tests {param} |tee /tmp/{self.dut_pathlog}"
         out = self.dut.send_expect(cmds, "# ", self.execute_wait_time)
         self.logger.info(out)
         self.copy_file_from_dut()
@@ -173,7 +173,7 @@ class TestMesonTests(TestCase):
         self.dut_pathlog = "extra-test.log"
         # delete exists files
         self.delete_exists_files()
-        cmds = f"meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:extra-tests {param} |tee /tmp/{self.dut_pathlog}"
+        cmds = f"meson test -C {self.target} --suite DPDK:extra-tests {param} |tee /tmp/{self.dut_pathlog}"
         out = self.dut.send_expect(cmds, "# ", self.execute_wait_time)
         self.logger.info(out)
         self.copy_file_from_dut()
@@ -188,7 +188,7 @@ class TestMesonTests(TestCase):
         self.dut_pathlog = "perf-test.log"
         # delete exists files
         self.delete_exists_files()
-        cmds = f"meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:perf-tests {param} |tee /tmp/{self.dut_pathlog}"
+        cmds = f"meson test -C {self.target} --suite DPDK:perf-tests {param} |tee /tmp/{self.dut_pathlog}"
         out = self.dut.send_expect(cmds, "# ", self.execute_wait_time)
         self.logger.info(out)
         self.copy_file_from_dut()
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dts][PATCH V1] tests/meson_tests: fix hardcode issue
  2023-01-13  7:05 [dts][PATCH V1] tests/meson_tests: fix hardcode issue Dukai Yuan
@ 2023-01-13  7:59 ` lijuan.tu
  0 siblings, 0 replies; 2+ messages in thread
From: lijuan.tu @ 2023-01-13  7:59 UTC (permalink / raw)
  To: dts, Dukai Yuan; +Cc: Dukai Yuan

On Fri, 13 Jan 2023 15:05:17 +0800, Dukai Yuan <dukaix.yuan@intel.com> wrote:
> The target name is hardcode, so that can't cover other target,
> such as `x86_64-native-linuxapp-clang`, so fix hardcode issue.
> 
> Signed-off-by: Dukai Yuan <dukaix.yuan@intel.com>


Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-13  7:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13  7:05 [dts][PATCH V1] tests/meson_tests: fix hardcode issue Dukai Yuan
2023-01-13  7:59 ` 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).