I'm trying to run calabash-android tests on my Android APK, on one machine with one emulator the tests work fine, however on another machine with the same code, but with a different emulator, I get an error message.
Here are the commands that I run in the .sh file:
rm -rf screenshot*
rm -rf test_servers
bundle exec calabash-android build "jenkins.apk"
bundle exec calabash-android run "jenkins.apk" -p android -v
And here is the error log:
2017-04-28 14:03:36 - Installation: test_servers / 0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk 2017-04-28 14:03:36 - [10%] / data / local / tmp / 0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.ap ] / data / local / tmp / 0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [32%] / data / local / tmp / 0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk [43%] / data / local / tmp0bc245cbc25cbc1c4ccb015cb015cb015cb01c 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: could not copy 'test_servers / 0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk 'to' /data/local/tmp/0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk ': remote File system read-only test_servers / 0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk: 0. 11.6 MB / s (609369 bytes in 0.050 seconds) 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 application is no longer working. This may be due to a crash or because your test script disables it. 2017-04-28 14:03:41 - The server is not responding. We move on. Build the “Run the shell” step with the line marked as a malfunctionremote File system read-only test_servers / 0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk: 0 files pushed. 11.6 MB / s (609369 bytes in 0.050 seconds) 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 application is no longer working. This may be due to a crash or because your test script disables it. 2017-04-28 14:03:41 - The server is not responding. We move on. Build the “Run the shell” step with the line marked as a malfunctionremote File system read-only test_servers / 0124c485b6b2589f08b4f8d4e6c01c05_0.9.0.apk: 0 files pushed. 11.6 MB / s (609369 bytes in 0.050 seconds) 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 application is no longer working. This may be due to a crash or because your test script disables it. 2017-04-28 14:03:41 - The server is not responding. We move on. Build the “Run the shell” step with the line marked as a malfunction0 / lib / calabash-android / lib / screenshotTaker.jar "emulator-5744" screenshot_0.png "2017-04-28 14:03:41 - It looks like your application is no longer working. It may be due to an accident or because that your script test disables it. 2017-04-28 14:03:41 - The server is not responding. Moving on. Build the "Run the shell" step by marking the line as a malfunction0 / lib / calabash-android / lib / screenshotTaker.jar "emulator-5744" screenshot_0.png "2017-04-28 14:03:41 - It looks like your application is no longer working. It may be due to an accident or because that your script test disables it. 2017-04-28 14:03:41 - The server is not responding. Moving on. Build the "Run the shell" step by marking the line as a malfunction
- , apk , " ?
EDIT: :
adb remount
.