fastlane-plugin-automated_test_emulator_run 1.2.1 → 1.2.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2c456d092f761021c807ccb269901bb76536fc5
|
|
4
|
+
data.tar.gz: c12778dbab54df1098d185829e2f62ae6c68fbe5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e35ff5ffe05df422d2111503c7d00b546642b0204a715c73a0e764fb4c570d830426da95dddeb3dcb045e24670a01afe553d83b7c03da73df716e36eff17df6
|
|
7
|
+
data.tar.gz: f41e31f85d243f0899a284f2e5d3c6d45cd0e921c76746c02a592a2ec3c352d927f7469f6b4afcb6dc06244c9f6b5593653da294276959a4693adca63c07066a
|
data/lib/fastlane/plugin/automated_test_emulator_run/actions/automated_test_emulator_run_action.rb
CHANGED
|
@@ -118,10 +118,16 @@ module Fastlane
|
|
|
118
118
|
UI.message("AVDs Booted!".green)
|
|
119
119
|
else
|
|
120
120
|
for i in 0...avd_schemes.length
|
|
121
|
+
# Display AVD output
|
|
122
|
+
if (File.exists?(avd_controllers[i].output_file.path))
|
|
123
|
+
UI.message(["Displaying log for AVD:", avd_schemes[i].avd_name].join(" ").red)
|
|
124
|
+
UI.message(avd_controllers[i].output_file.read.blue)
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Killing devices
|
|
121
128
|
unless devices.match(["emulator-", avd_schemes[i].launch_avd_port].join("")).nil?
|
|
122
129
|
Action.sh(avd_controllers[i].command_kill_device)
|
|
123
130
|
end
|
|
124
|
-
end
|
|
125
131
|
end
|
|
126
132
|
end
|
|
127
133
|
|
|
@@ -150,15 +156,7 @@ module Fastlane
|
|
|
150
156
|
Action.sh(avd_controllers[i].command_kill_device)
|
|
151
157
|
end
|
|
152
158
|
|
|
153
|
-
#
|
|
154
|
-
if params[:AVD_clean_after]
|
|
155
|
-
UI.message("AVD_clean_after param set to true. Deleting AVDs.".green)
|
|
156
|
-
Action.sh(avd_controllers[i].command_delete_avd)
|
|
157
|
-
else
|
|
158
|
-
UI.message("AVD_clean_after param set to false. Created AVDs won't be deleted.".green)
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
# Display output
|
|
159
|
+
# Display AVD output
|
|
162
160
|
if (File.exists?(avd_controllers[i].output_file.path))
|
|
163
161
|
UI.message("Displaying log from AVD to console:".green)
|
|
164
162
|
UI.message(avd_controllers[i].output_file.read.blue)
|
|
@@ -167,6 +165,14 @@ module Fastlane
|
|
|
167
165
|
avd_controllers[i].output_file.close
|
|
168
166
|
avd_controllers[i].output_file.unlink
|
|
169
167
|
end
|
|
168
|
+
|
|
169
|
+
# Delete AVDs
|
|
170
|
+
if params[:AVD_clean_after]
|
|
171
|
+
UI.message("AVD_clean_after param set to true. Deleting AVDs.".green)
|
|
172
|
+
Action.sh(avd_controllers[i].command_delete_avd)
|
|
173
|
+
else
|
|
174
|
+
UI.message("AVD_clean_after param set to false. Created AVDs won't be deleted.".green)
|
|
175
|
+
end
|
|
170
176
|
end
|
|
171
177
|
end
|
|
172
178
|
end
|