test-loop 12.3.0 → 12.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/test/loop.rb +6 -2
- metadata +4 -3
data/lib/test/loop.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'set'
|
2
|
+
require 'base64'
|
2
3
|
require 'ostruct'
|
3
4
|
require 'diff/lcs'
|
4
5
|
|
@@ -121,7 +122,8 @@ module Test
|
|
121
122
|
def reload_master_process test_files = Set.new
|
122
123
|
test_files.merge currently_running_test_files
|
123
124
|
stop_worker_queue
|
124
|
-
ENV.replace MASTER_ENV.merge(RESUME_ENV_KEY =>
|
125
|
+
ENV.replace MASTER_ENV.merge(RESUME_ENV_KEY =>
|
126
|
+
Base64.encode64(Marshal.dump(test_files)))
|
125
127
|
exec(*MASTER_EXECV)
|
126
128
|
end
|
127
129
|
|
@@ -157,7 +159,9 @@ module Test
|
|
157
159
|
|
158
160
|
# resume test files stopped by the previous incarnation of test-loop
|
159
161
|
if ENV.key? RESUME_ENV_KEY
|
160
|
-
resume_files =
|
162
|
+
resume_files =
|
163
|
+
Marshal.load(Base64.decode64(ENV.delete(RESUME_ENV_KEY)))
|
164
|
+
|
161
165
|
unless resume_files.empty?
|
162
166
|
notify 'Resuming tests...'
|
163
167
|
test_files.merge resume_files
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-loop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.3.
|
4
|
+
version: 12.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Suraj N. Kurapati
|
9
9
|
- Brian D. Burns
|
10
10
|
- Daniel Pittman
|
11
|
+
- Jacob Helwig
|
11
12
|
autorequire:
|
12
13
|
bindir: bin
|
13
14
|
cert_chain: []
|
@@ -15,7 +16,7 @@ date: 2011-07-19 00:00:00.000000000 Z
|
|
15
16
|
dependencies:
|
16
17
|
- !ruby/object:Gem::Dependency
|
17
18
|
name: diff-lcs
|
18
|
-
requirement: &
|
19
|
+
requirement: &21852080 !ruby/object:Gem::Requirement
|
19
20
|
none: false
|
20
21
|
requirements:
|
21
22
|
- - ! '>='
|
@@ -23,7 +24,7 @@ dependencies:
|
|
23
24
|
version: 1.1.2
|
24
25
|
type: :runtime
|
25
26
|
prerelease: false
|
26
|
-
version_requirements: *
|
27
|
+
version_requirements: *21852080
|
27
28
|
description:
|
28
29
|
email:
|
29
30
|
executables:
|