quokkadb 1.1.1 → 1.1.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/quokkadb.rb +1 -1
- data/lib/quokkadb/adb_runner.rb +10 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b5a09fcef06ad828827b17f34aa3675f3420709
|
4
|
+
data.tar.gz: 932e3a7dcff9d3d60b8446dde29856125dbd83da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 697906eb177601dccbced3c50f372d845f658780b35c29afe05786d2b7ef1719404fe299f7c5f3bae21b776c162a739b8562eac4ec4387705591dfe24c0d8a0d
|
7
|
+
data.tar.gz: 307642b5e60d6fa7d9bf00caacfae37d0b1c77758b513031f00f10038c3127b5eea4ba98ef8280af024dbadf03fb27bf122031820b2e4f6b54ab1866ccac35f1
|
data/lib/quokkadb.rb
CHANGED
@@ -42,7 +42,7 @@ class QuokkADB
|
|
42
42
|
|
43
43
|
def parse_results(full_log)
|
44
44
|
full_log.each_line do |log|
|
45
|
-
if (log.include?("FAILURES!!!") or log.include?("Process crashed while executing") or log.include?("INSTRUMENTATION_FAILED"))
|
45
|
+
if (log.include?("FAILURES!!!") or log.include?("Process crashed while executing") or log.include?('Process crashed.') or log.include?("INSTRUMENTATION_FAILED"))
|
46
46
|
puts("exit 1")
|
47
47
|
exit(1)
|
48
48
|
end
|
data/lib/quokkadb/adb_runner.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'open3'
|
2
|
+
|
1
3
|
class ADBRunner
|
2
4
|
|
3
5
|
attr_accessor :callback
|
@@ -25,9 +27,14 @@ class ADBRunner
|
|
25
27
|
def run_tests(runner:, package:, serial: nil, annotation: nil, shards: nil, index: nil)
|
26
28
|
command = "adb #{serial ? "-s #{serial}" : ''} shell am instrument #{annotation ? "-e annotation #{annotation}" : ''} #{generate_sharding_options(shards: shards, index: index)} -r -w #{package}/#{runner}"
|
27
29
|
puts("Command: #{command}")
|
28
|
-
|
29
|
-
|
30
|
-
|
30
|
+
Open3.popen2(command) do |stdin, stdout_err, wait_thr|
|
31
|
+
while line = stdout_err.gets
|
32
|
+
@callback.call(line)
|
33
|
+
end
|
34
|
+
exit_status = wait_thr.value
|
35
|
+
unless exit_status.success?
|
36
|
+
@callback.call("FAILURES!!!")
|
37
|
+
end
|
31
38
|
end
|
32
39
|
end
|
33
40
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quokkadb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Beveridge
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ADB test parsing libraryr
|
14
14
|
email: joe.beveridge@shopify.com
|