monkey日志保存在PC机上提示:Read-only file system

 使用Monkey压测机顶盒时,设置日志保存路径在PC机上,总是报错提示“/system/bin/sh:can't create d:\TMMH20181024.log:Read-only file system”

操作步骤:

1.机顶盒连接PC机

执行命令:adb connect ip[机顶盒IP]

2.查看adb连接的设备

执行命令:adb devices

3.进入adb shell模式

执行命令:adb shell

4.执行monkey命令

1)将日志保存在机顶盒上,执行成功(不方便读取日志信息)

monkey  -p com.xxxx.xxx --throttle 200 --hprof -s 1000 --ignore-crashes --ignore-timeouts --monitor-native-crashes -v -v -v 1000000 > /mnt/sdcard/Monkey.log

2)将日志保存在PC机上,执行失败,提示:/system/bin/sh:can't create d:\TMMH20181024.log:Read-only file system

monkey  -p com.xxxx.xxx --throttle 200 --hprof -s 1000 --ignore-crashes --ignore-timeouts --monitor-native-crashes -v -v -v 1000000 > d:\TMMH20181024.log

解决方法:退出adb shell,在确保设备已连接时,执行monkey 命令如下monkey命令,可以将monkey日志保存在PC机上的指定路径下:

adb shell monkey  -p com.xxxx.xxx --throttle 200 --hprof -s 1000 --ignore-crashes --ignore-timeouts --monitor-native-crashes -v -v -v 1000000 > d:\TMMH20181024.log

猜你喜欢

转载自blog.csdn.net/laofashi2015/article/details/83343944