修改dmlib_lite.py代码

Signed-off-by: guoxudong <guoxudong12@huawei.com>
This commit is contained in:
guoxudong 2024-05-21 19:55:35 +08:00
parent cebb985b26
commit e3bdf6431a

View File

@ -89,7 +89,8 @@ def check_read_test_end(result=None, input_command=None):
elif input_command.startswith("zcat"):
return False
elif input_command == "uname":
if "Linux" in result_output and "# " in result_output:
if ("Linux" in result_output and "# " in result_output) \
or ("OHOS #" in result_output or "#" in result_output):
return True
elif input_command.startswith("chmod +x") and input_command.find("query.bin"):
if PRODUCT_PARAMS_END in result_output: