calabash-android – 安装APK – 远程只读文件系统时出错
作者:互联网
我试图在我的Android APK上运行calabash-android测试,在一台机器上使用一个模拟器,测试运行正常,但是在另一台机器上使用相同的代码,但是一个不同的模拟器我得到一个错误.
以下是我在.sh文件中运行的命令:
rm -rf screenshot*
rm -rf test_servers
bundle exec calabash-android build "jenkins.apk"
bundle exec calabash-android run "jenkins.apk" -p android -v
这是错误日志:
2017-04-28 14:03:36 – Installing:
test_servers/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk 2017-04-28
14:03:36 – [ 10%]
/data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 21%]
/data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 32%]
/data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 43%]
/data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 53%]
/data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 64%]
/data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 75%]
/data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 86%]
/data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [ 96%]
/data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [100%]
/data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk adb: error:
failed to copy
‘test_servers/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk’ to
‘/data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk’: remote
Read-only file system
test_servers/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk: 0 files
pushed. 11.6 MB/s (609369 bytes in 0.050s) 2017-04-28 14:03:40 – java
-jar “/usr/local/lib/ruby/gems/2.4.0/gems/calabash-android-0.9.0/lib/calabash-android/lib/screenshotTaker.jar”
emulator-5744 “screenshot_0.png” 2017-04-28 14:03:41 – It looks like
your app is no longer running. It could be because of a crash or
because your test script shut it down. 2017-04-28 14:03:41 – Server
not responding. Moving on. Build step ‘Execute shell’ marked build as
failure
任何人都可以解释为什么apk不会安装在这个模拟器上,为什么它有一个“远程只读文件系统?
编辑:我尝试添加以下内容:
adb remount
但我仍然得到同样的错误.
解决方法:
你能试一下吗
adb shell
su
mount -o remount,rw /system
让我知道那是做什么的?
Credit
标签:android,android-emulator,jenkins,jenkins-plugins,calabash-android 来源: https://codeday.me/bug/20190705/1391621.html