Open ssaqua opened 5 years ago
👋 Are you starting emulators with -no-boot-anim
option?
Currently, swarmer waits for animation to be completed. take a look here https://github.com/gojuno/swarmer/pull/49
Actually I'm not working on the same project anymore as when I opened this issue 😅
I do recall playing with both -no-boot-anim
and without it, and I did see your PR before and thought that it would help.
We moved away from using swarmer eventually because we needed something with better support for snapshots, but still using composer for the test execution.
If I get some time I might see if I can make a minimal sample that reproduces the original issue.
This might be a silly question, how exactly should composer be called after starting emulators with swarmer?
I'm finding that composer may fail to install my test APKs because the emulators are not given sufficient time for the package manager to become available:
adb: failed to install path/to/test-apk: cmd: Can't find service: package
My buildscript simply executes the swarmer and composer commands one after each other.
Here are the relevant parts from the command outputs:
Everything works fine if I simply wait to run composer manually.
I'm currently doing something like this as a workaround, would rather not do this if it's not necessary.
update - the mount service is also required because package installation can also fail due to the storage manager not being available: