fastlane-plugin-automated_test_emulator_run 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c4a08b6203a0781bbcd1ec0af9fbeb0bbe243ed
|
4
|
+
data.tar.gz: 9f01308e8fc7f3fe2d5c6e2bc1b43f203c2c4676
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 940b6378c58e9c8fcf8248855d923e5c2d61b75bf6c3d95f91aaf1b780cf8f33599051efba6103a9d1b485d479f5b90a29880b7967c59c79ced22b95e1cb7dba
|
7
|
+
data.tar.gz: 5b7ebd2ded5fdb2b5c4383638914f57f008529ec48ae35d5de0c57b618ff8249224464e34a6183cfab1ed0a5d6d5de9b0c4a7891682a3967b2dd43b8d9049526
|
data/lib/fastlane/plugin/automated_test_emulator_run/actions/automated_test_emulator_run_action.rb
CHANGED
@@ -87,9 +87,10 @@ module Fastlane
|
|
87
87
|
UI.message("Using gradle task".green)
|
88
88
|
gradle.trigger(task: params[:gradle_task], flags: params[:gradle_flags], serial: nil)
|
89
89
|
end
|
90
|
-
|
91
|
-
|
92
|
-
|
90
|
+
end
|
91
|
+
|
92
|
+
if emulatorStarted
|
93
|
+
waitFor_emulatorStop(sdkRoot, port, params, file)
|
93
94
|
end
|
94
95
|
ensure
|
95
96
|
file.close
|
@@ -118,9 +119,9 @@ module Fastlane
|
|
118
119
|
if startParams.include? "-no-window"
|
119
120
|
Action.sh("adb wait-for-device")
|
120
121
|
Action.sh("adb devices")
|
122
|
+
return true
|
121
123
|
else
|
122
|
-
|
123
|
-
timeoutInSeconds= 150.0
|
124
|
+
timeoutInSeconds= 300.0
|
124
125
|
startTime = Time.now
|
125
126
|
loop do
|
126
127
|
stdout, _stdeerr, _status = Open3.capture3(sdkRoot + ["/platform-tools/adb -s emulator-", port].join("") + " shell getprop sys.boot_completed")
|
@@ -139,8 +140,7 @@ module Fastlane
|
|
139
140
|
end
|
140
141
|
end
|
141
142
|
|
142
|
-
def self.waitFor_emulatorStop(sdkRoot, port, params, file
|
143
|
-
if emulatorStarted == true
|
143
|
+
def self.waitFor_emulatorStop(sdkRoot, port, params, file)
|
144
144
|
adb = Helper::AdbHelper.new(adb_path: sdkRoot + "/platform-tools/adb")
|
145
145
|
temp = File.open(file.path).read
|
146
146
|
|
@@ -149,7 +149,6 @@ module Fastlane
|
|
149
149
|
|
150
150
|
UI.message("Deleting emulator....".green)
|
151
151
|
Action.sh(sdkRoot + "/tools/android delete avd -n #{params[:avd_name]}")
|
152
|
-
end
|
153
152
|
end
|
154
153
|
|
155
154
|
def self.available_options
|