stop script when emulator command returns with error about out of disk space
+ wait-for-emulator.sh
+ emulator -avd ci_test -gpu swiftshader_indirect -no-qt -no-audio -no-boot-anim -no-snapshot -no-snapstorage -no-window -wipe-data -skip-adb-auth -detect-image-hang -restart-when-stalled -verbose -shell-serial file:kernel.log -logcat-output logcat.txt
* daemon not running; starting now at tcp:5037
* daemon started successfully
ERROR | Not enough disk space to run AVD 'ci_test'. Exiting...
VERBOSE | autoconfig: -skin 1080x1920
VERBOSE | autoconfig: -skindir (null)
VERBOSE | autoconfig: -kernel /opt/android-sdk/system-images/android-23/default/x86//kernel-ranchu
VERBOSE | Target arch = 'x86'
VERBOSE | Auto-config: -qemu -cpu qemu32
VERBOSE | Auto-detect: Kernel image requires new device naming scheme.
VERBOSE | Auto-detect: Kernel does not support YAFFS2 partitions.
VERBOSE | autoconfig: -ramdisk /opt/android-sdk/system-images/android-23/default/x86//ramdisk.img
VERBOSE | Using initial system image: /opt/android-sdk/system-images/android-23/default/x86//system.img
VERBOSE | No vendor image
VERBOSE | autoconfig: -initdata /opt/android-sdk/system-images/android-23/default/x86//userdata.img
VERBOSE | autoconfig: -cache /root/.android/avd/ci_test.avd/cache.img
VERBOSE | Increasing RAM size to 1024MB
VERBOSE | VM heap size 0MB is below hardware specified minimum of 256MB,setting it to that value
VERBOSE | System image is read only
VERBOSE | Found 2 DNS servers:
VERBOSE | 140.211.166.130
VERBOSE | 140.211.166.131