fastlane-plugin-automated_test_emulator_run 0.5.4 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd172a416437083fd22fe9d87c5ac7f108504213
4
- data.tar.gz: b48f0881baf80f4154456b63c05e1cdd2388b565
3
+ metadata.gz: 357c82b901f5b38f8018b4ac2b461c9b473a2a6f
4
+ data.tar.gz: 186f4bdd728f75365f2a8437379e84fabdb8cac1
5
5
  SHA512:
6
- metadata.gz: 81d507472be3cdb374b12fd0920c6369c240040df61e8e715f140afb0c4416b0d14a514bfe002056330e79582eeaa983c700e0bc8183a1459e8733159b05bc5a
7
- data.tar.gz: b7650a2f9f27968a5af7fa52bc18387fca9ec0e399c3bddb72b32b2bde469b5af68897767ac4654c80e39123a6a0e69a2ee1026150425a35658074c74a0efb93
6
+ metadata.gz: de5a6f79d2139f736733814f20a7933ba5e18267250f0cf3681568903395f6d3d571d035cf8f34a2d275f96e2a8bbf9d27de3a8a3ac53e2fb9ecbd5257ff8efc
7
+ data.tar.gz: 40626d93fa76b42413e4706924e234c7619284032e4e4d5eb4d936b08468222466259262ac661598f32e4708cf1ac3d1c88874011ea7122f2c95414920845410
@@ -68,7 +68,14 @@ module Fastlane
68
68
  UI.message("Starting AVD....".yellow)
69
69
 
70
70
  Action.sh(start_avd_command)
71
- waitFor_emulatorBoot(sdkRoot, port, params)
71
+ emulatorStarted = waitFor_emulatorBoot(sdkRoot, port, params)
72
+ unless emulatorStarted
73
+ waitFor_emulatorStop(sdkRoot, port, params)
74
+
75
+ UI.message("Launch failed - relaunching emulator once".green)
76
+ Action.sh(start_avd_command)
77
+ waitFor_emulatorBoot(sdkRoot, port, params)
78
+ end
72
79
 
73
80
  UI.message("Starting tests".green)
74
81
  begin
@@ -116,7 +123,7 @@ module Fastlane
116
123
  currentTime = Time.now
117
124
 
118
125
  if (currentTime - startTime) >= timeoutInSeconds
119
- UI.message("Emulator loading took more than 3 minutes. Not waiting anymore and trying to run with devices only!".yellow)
126
+ UI.message("Emulator loading took more than 3 minutes.".yellow)
120
127
  return false
121
128
  end
122
129
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AutomatedTestEmulatorRun
3
- VERSION = "0.5.4"
3
+ VERSION = "0.5.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-automated_test_emulator_run
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Krzyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-24 00:00:00.000000000 Z
11
+ date: 2016-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry