stf-client 0.2.1 → 0.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 +4 -4
- data/lib/stf/interactor/start_one_debug_session_interactor.rb +13 -4
- data/lib/stf/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea326c496a6d55d0d4d124c26d0e085a6df25d30
|
|
4
|
+
data.tar.gz: ab5390dac3a03886f4cb57ea74fd0626e1ec1420
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56dc913c31e58e4cd367d5abcd94842fc880b296b5d61456d12bc76c0fe8685dc1fc2706b7749d64c039f36fec6eff9a59b50e258e79f150437e7cf5410b7def
|
|
7
|
+
data.tar.gz: f251c0297cd0889808a21c350c2024b88b55de025236e19a245f9c50e539576b9b80400da9cc548a1c870ce74977f6c58a1bee6964e86ec9e7312e45ae5cbed2
|
|
@@ -35,10 +35,19 @@ module Stf
|
|
|
35
35
|
|
|
36
36
|
execute_adb_with 30, "connect #{result.remoteConnectUrl}"
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
# Check for adb device status
|
|
39
|
+
execute_adb_with(30, 'devices')
|
|
40
|
+
device_list = last_stdout.split("\n")
|
|
41
|
+
device_list.shift
|
|
42
|
+
devices = Hash[device_list.collect {|device| [device.split("\t").first, device.split("\t").last]}]
|
|
43
|
+
|
|
44
|
+
if devices["#{result.remoteConnectUrl}"] != "device"
|
|
45
|
+
raise "adb connect #{result.remoteConnectUrl} succeeded but device is not in the adb devices list"
|
|
46
|
+
end
|
|
39
47
|
|
|
40
|
-
|
|
41
|
-
|
|
48
|
+
shell('exit', {serial: "#{result.remoteConnectUrl}"}, 30)
|
|
49
|
+
|
|
50
|
+
return true
|
|
42
51
|
|
|
43
52
|
rescue => e
|
|
44
53
|
begin
|
|
@@ -52,4 +61,4 @@ module Stf
|
|
|
52
61
|
end
|
|
53
62
|
end
|
|
54
63
|
end
|
|
55
|
-
end
|
|
64
|
+
end
|
data/lib/stf/version.rb
CHANGED