fastlane-plugin-automated_test_emulator_run_next 1.0.3 → 1.0.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 +4 -4
- data/lib/fastlane/plugin/automated_test_emulator_run/actions/automated_test_emulator_run_action.rb +9 -10
- data/lib/fastlane/plugin/automated_test_emulator_run/factory/avd_controller_factory.rb +1 -1
- data/lib/fastlane/plugin/automated_test_emulator_run/provider/avd_setup_provider.rb +1 -1
- data/lib/fastlane/plugin/automated_test_emulator_run/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 575f61c3b49731af8e4665e4f81d7d2cdb9c00f1f3c0ef5be7122b65f9026898
|
4
|
+
data.tar.gz: e00abf1bd6f70a3a92e6a877918dedcb9388247b0d7c88425a3f073c90297834
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29041b3ee4e714f023354637c9051ff666403c2ca075aec47e0ca059fe84b2f92e46b4e0e6d50227c3d52b1b53784e2f9be294169c76a3b1aec3870f80922c42
|
7
|
+
data.tar.gz: 572bca96db8e5a3533fe5c86408088ee526a4de210b7dafe2f33c40fb63597355571332dde280fb1e921ac5a22f313096cb31c8aefce6519649388e5b2b90c91
|
data/lib/fastlane/plugin/automated_test_emulator_run/actions/automated_test_emulator_run_action.rb
CHANGED
@@ -22,7 +22,7 @@ module Fastlane
|
|
22
22
|
|
23
23
|
if params[:verbose]
|
24
24
|
# Checking for output files
|
25
|
-
if File.
|
25
|
+
if File.exist?(avd_controller.output_file.path)
|
26
26
|
UI.message([
|
27
27
|
"Successfully created tmp output file for AVD:",
|
28
28
|
avd_schemes[i].avd_name + ".",
|
@@ -101,8 +101,9 @@ module Fastlane
|
|
101
101
|
end
|
102
102
|
|
103
103
|
# Launching AVDs
|
104
|
-
UI.message("Launching all AVDs
|
104
|
+
UI.message("Launching all AVDs.".yellow)
|
105
105
|
for i in 0...avd_controllers.length
|
106
|
+
sleep(3)
|
106
107
|
Process.fork do
|
107
108
|
Action.sh(avd_controllers[i].command_start_avd)
|
108
109
|
end
|
@@ -169,7 +170,7 @@ module Fastlane
|
|
169
170
|
for i in 0...avd_schemes.length
|
170
171
|
if params[:verbose]
|
171
172
|
# Display AVD output
|
172
|
-
if (File.
|
173
|
+
if (File.exist?(avd_controllers[i].output_file.path))
|
173
174
|
UI.message(["Displaying log for AVD:", avd_schemes[i].avd_name].join(" ").red)
|
174
175
|
UI.message(avd_controllers[i].output_file.read.blue)
|
175
176
|
end
|
@@ -222,7 +223,7 @@ module Fastlane
|
|
222
223
|
|
223
224
|
if params[:verbose]
|
224
225
|
# Display AVD output
|
225
|
-
if (File.
|
226
|
+
if (File.exist?(avd_controllers[i].output_file.path))
|
226
227
|
UI.message("Displaying log from AVD to console:".green)
|
227
228
|
UI.message(avd_controllers[i].output_file.read.blue)
|
228
229
|
|
@@ -372,11 +373,9 @@ module Fastlane
|
|
372
373
|
end
|
373
374
|
|
374
375
|
# Finishing wait with success if all params are loaded for every device
|
375
|
-
device_boot_statuses.
|
376
|
-
if !is_booted
|
377
|
-
break
|
378
|
-
end
|
376
|
+
if device_boot_statuses.all? { |name, is_booted| is_booted }
|
379
377
|
all_params_launched = true
|
378
|
+
sleep(10)
|
380
379
|
end
|
381
380
|
if all_params_launched
|
382
381
|
break
|
@@ -401,8 +400,8 @@ module Fastlane
|
|
401
400
|
optional: false),
|
402
401
|
FastlaneCore::ConfigItem.new(key: :SDK_path,
|
403
402
|
env_name: "SDK_PATH",
|
404
|
-
description: "The path to your android sdk directory (root).
|
405
|
-
default_value: ENV['
|
403
|
+
description: "The path to your android sdk directory (root). ANDROID_SDK_ROOT by default",
|
404
|
+
default_value: ENV['ANDROID_SDK_ROOT'] || ENV['ANDROID_HOME'],
|
406
405
|
is_string: true,
|
407
406
|
optional: true),
|
408
407
|
FastlaneCore::ConfigItem.new(key: :install_missing_image,
|
@@ -85,7 +85,7 @@ module Fastlane
|
|
85
85
|
sh_create_avd_additional_options].join(" ")
|
86
86
|
|
87
87
|
avd_controller.output_file = Tempfile.new('emulator_output')
|
88
|
-
avd_output = File.
|
88
|
+
avd_output = File.exist?(avd_controller.output_file) ? ["&>", avd_controller.output_file.path, "&"].join("") : "&>/dev/null &"
|
89
89
|
|
90
90
|
avd_controller.command_start_avd = [
|
91
91
|
sh_launch_emulator_binary,
|
@@ -117,7 +117,7 @@ module Fastlane
|
|
117
117
|
end
|
118
118
|
|
119
119
|
def self.read_avd_setup(params)
|
120
|
-
if File.
|
120
|
+
if File.exist?(File.expand_path("#{params[:AVD_setup_path]}"))
|
121
121
|
file = File.open(File.expand_path("#{params[:AVD_setup_path]}"), "rb")
|
122
122
|
json = file.read
|
123
123
|
file.close
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-automated_test_emulator_run_next
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroto Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
|
-
rubygems_version: 3.
|
131
|
+
rubygems_version: 3.4.10
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: Starts multiple AVDs based on JSON file config. AVDs are created and configured
|