From 0c1d7fbeae977e681d5bbc0fb48b77eb072986b2 Mon Sep 17 00:00:00 2001 From: very0228 Date: Thu, 9 Feb 2023 01:38:42 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=A1=86=E6=9E=B6?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=89=A7=E8=A1=8Crust=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: very0228 --- src/core/testcase/testcase_manager.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/testcase/testcase_manager.py b/src/core/testcase/testcase_manager.py index 1c47b4f..e1f7fe1 100644 --- a/src/core/testcase/testcase_manager.py +++ b/src/core/testcase/testcase_manager.py @@ -38,7 +38,8 @@ TESTFILE_TYPE_DATA_DIC = { "BIN": [], "OHJST": [], "JST": [], - "LTPPosix": [] + "LTPPosix": [], + "OHRust": [] } FILTER_SUFFIX_NAME_LIST = [".TOC", ".info", ".pyc"] @@ -146,7 +147,10 @@ class TestCaseManager(object): continue suite_file_dictionary.get("PYT").append(suite_file) elif suffix_name == "": - suite_file_dictionary.get("CXX").append(suite_file) + if file_name.find("rust") != -1: + suite_file_dictionary.get("OHRust").append(suite_file) + else: + suite_file_dictionary.get("CXX").append(suite_file) elif suffix_name == ".bin": suite_file_dictionary.get("BIN").append(suite_file) -- Gitee From 90c90dfedae1cd7db8639581baef00cf3beb2c15 Mon Sep 17 00:00:00 2001 From: very0228 Date: Thu, 9 Feb 2023 06:14:03 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E6=A1=86=E6=9E=B6=E9=80=82=E9=85=8Drust?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E6=89=A7?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: very0228 --- src/core/command/run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/command/run.py b/src/core/command/run.py index 4682980..d47b2b2 100644 --- a/src/core/command/run.py +++ b/src/core/command/run.py @@ -227,6 +227,7 @@ class Run(object): scheduler = get_plugin(plugin_type=Plugin.SCHEDULER, plugin_id=SchedulerType.SCHEDULER)[0] + scheduler.update_test_type_in_source("OHRust", DeviceTestType.oh_rust_test) if scheduler is None: LOG.error("Can not find the scheduler plugin.") else: -- Gitee