parallel_tests 1.7.1 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 484162e78c644cdc5442d5df4fae89d182c32d2b
4
- data.tar.gz: 8eec3713cc6c27fdf1818eab6b679a032d4da715
3
+ metadata.gz: b98743db0fe97926ab98d0806cee0e82c1accf85
4
+ data.tar.gz: 74cd35a0d5771dde97914a0ef39b9ccefaf1c065
5
5
  SHA512:
6
- metadata.gz: c62ef2038d68c5bd8068ab92b8f4b72e7cd62f67dbaf3d3fd14a280ca9a3a1615dbe8b96cd196ea323ef4065439202dc268345f8f78e760ae7fefac7d7146625
7
- data.tar.gz: 09de06c1838b25e9508407323819e4cdc958e22f0cb466bf4ba40feb6cedcd90c71c6fe3b7b593ce85ff83e1dde01fe1db76a473a9a0c9a5a160fe902447bb8f
6
+ metadata.gz: f30e2061fd6622d0013593855775c0e129e64a73bfec5d95ebb1270ac1bfcbd2d6d53305442ba201eb6dea6bd69d02cf8890b011069f7d2057cb12ef75bdfb30
7
+ data.tar.gz: fbbcb2dc6d59f94b86d002cbd9dd7a2353c084bd1764665b337ec9c8de6fe4d2d056fa1b98a743c0834a73c7212cd5609cca97362cb62e94789ec064bb5f11f6
@@ -226,13 +226,17 @@ module ParallelTests
226
226
  end
227
227
 
228
228
  def execute_shell_command_in_parallel(command, num_processes, options)
229
- runs = (0...num_processes).to_a
229
+ runs = if options[:only_group]
230
+ options[:only_group].map{|g| g - 1}
231
+ else
232
+ (0...num_processes).to_a
233
+ end
230
234
  results = if options[:non_parallel]
231
235
  runs.map do |i|
232
236
  ParallelTests::Test::Runner.execute_command(command, i, num_processes, options)
233
237
  end
234
238
  else
235
- execute_in_parallel(runs, num_processes, options) do |i|
239
+ execute_in_parallel(runs, runs.size, options) do |i|
236
240
  ParallelTests::Test::Runner.execute_command(command, i, num_processes, options)
237
241
  end
238
242
  end.flatten
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '1.7.1'
2
+ VERSION = Version = '1.8.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-26 00:00:00.000000000 Z
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel