未验证 提交 9dd07101 编写于 作者: O openharmony_ci 提交者: Gitee

!257 解决最小系统冒烟不能正常退出的情况

Merge pull request !257 from 刘家辉/master
......@@ -144,10 +144,12 @@ if __name__ == "__main__":
mem_size = int(mem_find[0].split()[2]) / 1024 / 1024
else:
PrintToLog('Error:can find memory usage info!')
PrintToLog("End of check, test failed!")
sys.exit(99)
if mem_size > 25:
PrintToLog(
'Error:memory usage is over the upper limit(25M),now is {:.2f}'.format(mem_size))
PrintToLog("End of check, test failed!")
sys.exit(99)
target_dir = os.path.normpath(os.path.join(args.archive_path, "rootfs"))
......
......@@ -139,6 +139,7 @@ if __name__ == "__main__":
if process_usage > 40:
PrintToLog(
"ERROR: Processes usage cannot be greater than 40M, but currently it's actually %.2fM" % process_usage)
PrintToLog("End of check, test failed!")
sys.exit(99)
time.sleep(10)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册