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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72e8122c9f3c40161b5f2e52b24df7b06bf75bfd
4
- data.tar.gz: 121b1f543a5551a4830ac9ce1e3fc47f2b8cd374
3
+ metadata.gz: 5b5a09fcef06ad828827b17f34aa3675f3420709
4
+ data.tar.gz: 932e3a7dcff9d3d60b8446dde29856125dbd83da
5
5
  SHA512:
6
- metadata.gz: 34d6d1c0278e8a3529ef382d492dd2ea00e1f43786a51cdef343dd3412d202e2f67698fb68622f2ecfc7df851e9e3518f8101cade80e03f4be83cb5f7e013351
7
- data.tar.gz: d8523814cbe4d674adb4391203885b638b3cfdc645563b0d61617d3af0c6455f071f44e542b30de93044493aa197ef627d83c93c05e6f0eb36de2757bc8869b6
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
@@ -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
- pipe = IO.popen(command)
29
- while (line = pipe.gets)
30
- @callback.call(line)
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.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-02-19 00:00:00.000000000 Z
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