From 38fa4f478d20dc370ddbc4d5f9ccf3e8277ff613 Mon Sep 17 00:00:00 2001 From: very0228 Date: Thu, 2 Mar 2023 10:22:57 +0000 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4rust=E9=A9=B1=E5=8A=A8?= =?UTF-8?q?=E8=B0=83=E5=BA=A6=E6=96=B9=E5=BC=8F?= 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 - src/core/testcase/testcase_manager.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/command/run.py b/src/core/command/run.py index c159190..aefea4c 100644 --- a/src/core/command/run.py +++ b/src/core/command/run.py @@ -233,7 +233,6 @@ 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: diff --git a/src/core/testcase/testcase_manager.py b/src/core/testcase/testcase_manager.py index 25c1b53..06a7486 100644 --- a/src/core/testcase/testcase_manager.py +++ b/src/core/testcase/testcase_manager.py @@ -27,6 +27,8 @@ from core.common import is_open_source_product from core.utils import get_file_list_by_postfix from core.config.config_manager import FilterConfigManager from xdevice import platform_logger +from xdevice import Scheduler +from xdevice import DeviceTestType LOG = platform_logger("TestcaseManager") @@ -148,6 +150,7 @@ class TestCaseManager(object): suite_file_dictionary.get("PYT").append(suite_file) elif suffix_name == "": if file_name.find("rust") != -1: + Scheduler.update_test_type_in_source("OHRust", DeviceTestType.oh_rust_test) suite_file_dictionary.get("OHRust").append(suite_file) else: suite_file_dictionary.get("CXX").append(suite_file) -- Gitee