ADB设备执行shell脚本
前记
- 需求是在多台安卓设备上进行持续性点击的压力测试,直到出现异常,无需对结果进行自动断言,设备已设置无线ADB连接,个人希望设备能脱离电脑自动执行
- 最后采用的方法是,编写shell循环执行脚本-连接adb设备-推到adb设备上-建立线程自动执行
- 将上述ADB连接-推送-执行的步骤,编写为自动执行的脚本
run()
,若无需等待命令执行完毕就往下进行的话使用Popen()
搭建完hexo博客难免会遇到这样的情况:
A电脑搭建Hexo博客——A电脑必要源文件push到github仓库中——B电脑配置git、node环境——B电脑从github上clone必要源文件——B电脑安装Hexo
more >>搭建完hexo博客之后,想要把源代码备份或者想在其他终端上使用,其中一种方法便是push到GitHub上,需要时clone下来,然而themes下的主题文件夹除了默认主题比较正常之外,其他主题文件夹push到GitHub上之后却是灰色,将其clone之后发现是空文件夹,辛辛苦苦配置的主题难道需要重新配置一遍!?
删除这三项使Yilia变回普通目录——重新提交推送
more >>Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment
缺失模块。
1、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
2、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: true raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true