From 365a1ab45729de6ec556b432a94de13ae2dad3aa Mon Sep 17 00:00:00 2001 From: alex_hold <8038944+alex-hold@user.noreply.gitee.com> Date: Mon, 11 Jan 2021 17:11:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Dltp=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E4=B8=B2=E5=8F=A3=E6=89=93=E5=8D=B0=E4=B8=B2=E8=A1=8C=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/xdevice/_core/environment/dmlib_lite.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/xdevice/_core/environment/dmlib_lite.py b/src/xdevice/_core/environment/dmlib_lite.py index 30130ae..51c796f 100755 --- a/src/xdevice/_core/environment/dmlib_lite.py +++ b/src/xdevice/_core/environment/dmlib_lite.py @@ -42,10 +42,7 @@ LOG = platform_logger("DmlibLite") def check_read_test_end(result=None, input_command=None): - if input_command not in result: - return False - index = result.find(input_command) + len(input_command) - result_output = result[index:] + result_output = result.replace(input_command, "") if input_command.startswith("./"): if result_output.find(CPP_TEST_STANDARD_SIGN) != -1: if result_output.count(CPP_TEST_STANDARD_SIGN) == 2 or \