flaky 0.0.29 → 0.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flaky.rb +1 -1
- data/lib/flaky/run.rb +14 -5
- data/readme.md +1 -1
- data/release_notes.md +8 -0
- 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: 9dc556303ada7155a0045fe482ad57ccad8ea4d3
|
4
|
+
data.tar.gz: d092c1762af53a123154863afaa533fd4703d48a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35465870bc6dfed5949cd829e15ed703ddfbc7fa560e4e3924d33752350a9d628a5abc0bf5031a7ddf30e6ece4bfaf11677741045eb83acd1ce413d2ba348c48
|
7
|
+
data.tar.gz: 8911dda0aadf0826e7dc9363411670918ea2098e15b7d6fdca4c03cd0d8e52a498d2b5fc0b870cd84444716427759a1230d35f5037e5aa7a7ccf8efa9dddb705
|
data/lib/flaky.rb
CHANGED
@@ -9,7 +9,7 @@ require 'posix/spawn' # http://rubygems.org/gems/posix-spawn
|
|
9
9
|
require 'digest/md5'
|
10
10
|
|
11
11
|
module Flaky
|
12
|
-
VERSION = '0.0.
|
12
|
+
VERSION = '0.0.30' unless defined? ::Flaky::VERSION
|
13
13
|
DATE = '2014-01-29' unless defined? ::Flaky::DATE
|
14
14
|
|
15
15
|
class << self; attr_accessor :no_video; end
|
data/lib/flaky/run.rb
CHANGED
@@ -148,19 +148,28 @@ module Flaky
|
|
148
148
|
rake_pid = rake.pid
|
149
149
|
|
150
150
|
while process_exists rake_pid
|
151
|
-
sleep 0.5
|
152
151
|
begin
|
153
152
|
# readpartial throws end of file reached error
|
154
|
-
|
155
|
-
log +=
|
153
|
+
new_out = rake.out.readpartial 999_999 # blocks on 0 data
|
154
|
+
log += new_out
|
156
155
|
|
157
156
|
File.open(tmp_ruby_log, 'a') do |f|
|
158
|
-
f.write
|
157
|
+
f.write new_out
|
159
158
|
end
|
160
159
|
rescue
|
161
|
-
break
|
162
160
|
end
|
163
161
|
end
|
162
|
+
|
163
|
+
# must write rake.err. it's not included in rake.out
|
164
|
+
begin
|
165
|
+
new_err = rake.err.read_nonblock 999_999
|
166
|
+
|
167
|
+
log += new_err if new_err
|
168
|
+
File.open(tmp_ruby_log, 'a') do |f|
|
169
|
+
f.write new_err
|
170
|
+
end if new_err
|
171
|
+
rescue
|
172
|
+
end
|
164
173
|
end
|
165
174
|
rescue Exception => e
|
166
175
|
timedout = true
|
data/readme.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#### flaky [![Gem Version](https://badge.fury.io/rb/flaky.png)](http://rubygems.org/gems/flaky) [![Dependency Status](https://gemnasium.com/appium/flaky.png)](https://gemnasium.com/appium/flaky)
|
2
2
|
|
3
|
-
Run Appium iOS tests to measure flakiness.
|
3
|
+
Run Appium iOS/Android tests on OS X to measure flakiness.
|
4
4
|
|
5
5
|
- `gem uninstall -aIx flaky; gem install --no-rdoc --no-ri flaky`
|
6
6
|
- `flake 3 ios[nop]` - Run the iOS test named nop 3 times.
|
data/release_notes.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
#### v0.0.29 2014-01-29
|
2
|
+
|
3
|
+
- [52a30bb](https://github.com/appium/flaky/commit/52a30bbcf054b92072865d95f915d148378daeba) Release 0.0.29
|
4
|
+
- [45f669c](https://github.com/appium/flaky/commit/45f669cb17cf3b1adbdde4eb6de973eee825a292) Save rake.err
|
5
|
+
- [063795e](https://github.com/appium/flaky/commit/063795ec00bb8f0b36ce314fb2bb2519c34e01d2) Update readme.md
|
6
|
+
- [c3b057c](https://github.com/appium/flaky/commit/c3b057ccf9a9dce4a47a4d0b719a31e61fb40ad4) Clean up app logs after saving
|
7
|
+
|
8
|
+
|
1
9
|
#### v0.0.28 2014-01-24
|
2
10
|
|
3
11
|
- [17089b4](https://github.com/appium/flaky/commit/17089b4f26ae32a1fe34ff40f90f528853e4f0e6) Release 0.0.28
|