!29 修复卸载hap返回none报错问题

Merge pull request !29 from alex_hold/master
This commit is contained in:
openharmony_ci 2021-09-09 07:27:46 +00:00 committed by Gitee
commit 5bb3e7505b

View File

@ -592,7 +592,7 @@ class AppInstallKit(ITestKit):
if app_name:
result = device.uninstall_package(app_name)
if not result.startswith("Success"):
if not result or not result.startswith("Success"):
LOG.warning("error uninstalling package %s %s" %
(device.__get_serial__(), result))
else: