From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3648D423C0; Fri, 13 Jan 2023 08:10:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 359B7410EF; Fri, 13 Jan 2023 08:10:06 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 8D468410D4 for ; Fri, 13 Jan 2023 08:10:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673593805; x=1705129805; h=from:to:cc:subject:date:message-id; bh=DivSJ81dxrOAE1XZQjeSSIzvXjT6zRvRQzFKg9bUxzo=; b=HqsqdPiyg0+mz6WQLC0CKDSfYywxuN6vP0cz2jzoE+uTOm9VXYrhdjqY lArqCUKiParihJZuYQTM5k4qK0J+52rM+3xsAsvOEHM7xkcniZTGYeZ4B vDm4SSpmgBEVQSjM1C1r3MvQns8xISqsYVIUvJoM7wuQMt/BjW3DgGql1 7qfbnQtNu+mlwYQW6EhDUCaXihLvKcqQgjJ+gyhivWJdBq0fBvhCihEB2 2moqjF8XCs07aRL3eLZ9gbV67IlIeTaojijPJnwkXmrAvewh7AA+nzXKO O+vuxY/kotPZwhWilVN4hW7PqEfOINDnwgj/FDbdC0CAsighZiI66ATp7 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="325990849" X-IronPort-AV: E=Sophos;i="5.97,213,1669104000"; d="scan'208";a="325990849" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2023 23:10:04 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="635676642" X-IronPort-AV: E=Sophos;i="5.97,213,1669104000"; d="scan'208";a="635676642" Received: from unknown (HELO localhost.localdomain) ([10.239.252.15]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2023 23:10:03 -0800 From: Dukai Yuan To: dts@dpdk.org Cc: Dukai Yuan Subject: [dts][PATCH V1] tests/meson_tests: fix hardcode issue Date: Fri, 13 Jan 2023 15:05:17 +0800 Message-Id: <20230113070517.24080-1-dukaix.yuan@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org 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 --- 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