更新tdd适配

Signed-off-by: deveco_xdevice <liguangjie1@huawei.com>
This commit is contained in:
deveco_xdevice 2024-08-27 17:27:26 +08:00
parent 9b5cb72a3b
commit 73a967cc21
2 changed files with 1 additions and 3 deletions

View File

@ -17,7 +17,6 @@
#
import uuid
from dataclasses import dataclass
from xdevice import SuiteResult
from xdevice import CaseResult
@ -29,7 +28,6 @@ class StackCaseResult(CaseResult):
parent_index = ""
@dataclass
class StackStateRecorder:
def __init__(self):

View File

@ -118,8 +118,8 @@ class BaseScheduler(Sub, ABC):
def __execute__(self, task):
if not self._channel.is_empty():
LOG.debug("Run command: {}".format(convert_mac(self._channel.get_last())))
task_id = str(uuid.uuid1()).split("-")[0]
LOG.debug("Run command: {}".format(convert_mac(self._channel.get_last())))
run_command = self._channel.pop()
self._channel.append((task_id, run_command, task.config.report_path))
if self._channel.size() > self.__max_command_size__():