@@ -69,7 +69,7 @@ def two(_arg, _logger = nil)
69
69
c = Foo . new
70
70
one = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :one ) , args : 'abc' , description : 'test1' )
71
71
two = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :two ) , args : 'def' , description : 'test2' )
72
- result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , true , false )
72
+ result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , true )
73
73
expect ( result ) . to be_a_kind_of ( Array )
74
74
expect ( result . size ) . to eq ( 2 )
75
75
@@ -102,7 +102,7 @@ def two(_arg, _logger = nil)
102
102
c = Foo . new
103
103
one = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :one ) , args : 'abc' , description : 'test1' )
104
104
two = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :two ) , args : 'def' , description : 'test2' )
105
- result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , true , false )
105
+ result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , true )
106
106
expect ( result ) . to be_a_kind_of ( Array )
107
107
expect ( result . size ) . to eq ( 2 )
108
108
@@ -133,12 +133,12 @@ def my_method(arg, _logger = nil)
133
133
one = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :my_method ) , args : 'abc' , description : 'test1' )
134
134
expect do
135
135
logger = Logger . new ( STDERR )
136
- OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one ] , logger , true , false )
136
+ OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one ] , logger , true )
137
137
end . to output ( /DEBUG.*Begin test1/ ) . to_stderr_from_any_process
138
138
139
139
expect do
140
140
logger = Logger . new ( STDERR )
141
- OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one ] , logger , true , false )
141
+ OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one ] , logger , true )
142
142
end . to output ( /DEBUG.*Success test1/ ) . to_stderr_from_any_process
143
143
end
144
144
@@ -154,12 +154,12 @@ def my_method(arg, _logger = nil)
154
154
two = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :my_method ) , args : 'def' , description : 'test2' )
155
155
expect do
156
156
logger = Logger . new ( STDERR )
157
- OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , logger , true , false )
157
+ OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , logger , true )
158
158
end . to output ( /DEBUG.*Begin test[12]/ ) . to_stderr_from_any_process
159
159
160
160
expect do
161
161
logger = Logger . new ( STDERR )
162
- OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , logger , true , false )
162
+ OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , logger , true )
163
163
end . to output ( /DEBUG.*Failed test[12]: RuntimeError (abc|def)/ ) . to_stderr_from_any_process
164
164
end
165
165
@@ -215,7 +215,7 @@ def validate(arg, _logger = nil, _extra_args = {})
215
215
v = c . method ( :validate )
216
216
one = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :one ) , args : 'abc' , description : 'test1' , validator : v )
217
217
two = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :two ) , args : 'def' , description : 'test2' , validator : v )
218
- result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , true , false )
218
+ result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , true )
219
219
expect ( result ) . to be_a_kind_of ( Array )
220
220
expect ( result . size ) . to eq ( 2 )
221
221
@@ -243,7 +243,7 @@ def validate(arg, _logger = nil, _extra_args = {})
243
243
v = c . method ( :validate )
244
244
one = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :one ) , args : 'abc' , description : 'test1' , validator : v )
245
245
two = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :two ) , args : 'def' , description : 'test2' , validator : v )
246
- result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , true , false )
246
+ result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , true )
247
247
expect ( result ) . to be_a_kind_of ( Array )
248
248
expect ( result . size ) . to eq ( 2 )
249
249
@@ -303,7 +303,7 @@ def two(_arg, _logger = nil)
303
303
c = Foo . new
304
304
one = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :one ) , args : 'abc' , description : 'test1' )
305
305
two = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :two ) , args : 'def' , description : 'test2' )
306
- result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , false , false )
306
+ result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , false )
307
307
expect ( result ) . to be_a_kind_of ( Array )
308
308
expect ( result . size ) . to eq ( 2 )
309
309
@@ -334,7 +334,7 @@ def two(arg, _logger = nil)
334
334
c = Foo . new
335
335
one = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :one ) , args : 'abc' , description : 'test1' )
336
336
two = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :two ) , args : 'def' , description : 'test2' )
337
- result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , false , false )
337
+ result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , false )
338
338
expect ( result ) . to be_a_kind_of ( Array )
339
339
expect ( result . size ) . to eq ( 2 )
340
340
@@ -378,7 +378,7 @@ def my_method(arg, _logger = nil)
378
378
one = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :my_method ) , args : 'abc' , description : 'test1' )
379
379
two = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :my_method ) , args : 'def' , description : 'test2' )
380
380
logger , logger_string = OctocatalogDiff ::Spec . setup_logger
381
- OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , logger , false , false )
381
+ OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , logger , false )
382
382
expect ( logger_string . string ) . to match ( /DEBUG.*Begin test1/ )
383
383
expect ( logger_string . string ) . to match ( /DEBUG.*Failed test1: RuntimeError abc/ )
384
384
end
@@ -407,7 +407,7 @@ def validate(arg, _logger = nil, _extra_args = {})
407
407
v = c . method ( :validate )
408
408
one = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :one ) , args : 'abc' , description : 'test1' , validator : v )
409
409
two = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :two ) , args : 'def' , description : 'test2' , validator : v )
410
- result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , false )
410
+ result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil )
411
411
expect ( result ) . to be_a_kind_of ( Array )
412
412
expect ( result . size ) . to eq ( 2 )
413
413
@@ -434,7 +434,7 @@ def validate(arg, _logger = nil, _extra_args = {})
434
434
v = c . method ( :validate )
435
435
one = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :one ) , args : 'abc' , description : 'test1' , validator : v )
436
436
two = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :two ) , args : 'def' , description : 'test2' , validator : v )
437
- result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , false , false )
437
+ result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , false )
438
438
expect ( result ) . to be_a_kind_of ( Array )
439
439
expect ( result . size ) . to eq ( 2 )
440
440
@@ -461,7 +461,7 @@ def validate(arg, _logger = nil, _extra_args = {})
461
461
v = c . method ( :validate )
462
462
one = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :one ) , args : 'abc' , description : 'test1' , validator : v )
463
463
two = OctocatalogDiff ::Util ::Parallel ::Task . new ( method : c . method ( :two ) , args : 'def' , description : 'test2' , validator : v )
464
- result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , false , false )
464
+ result = OctocatalogDiff ::Util ::Parallel . run_tasks ( [ one , two ] , nil , false )
465
465
expect ( result ) . to be_a_kind_of ( Array )
466
466
expect ( result . size ) . to eq ( 2 )
467
467
0 commit comments