parallel_tests 2.2.1 → 2.2.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 +4 -4
- data/lib/parallel_tests/tasks.rb +2 -2
- data/lib/parallel_tests/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1845793bf53e304ba2fcd7b3597f383b31b8b8a8
|
|
4
|
+
data.tar.gz: 23622090c253a5af401ef124c3e9d48c8a627ead
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3fff6263cad7523b4c5846e633ae5690325c6b04dbad04f5e95b8539de1ccbbd99733fa9584a461f04bbc646d0c7b24f09036f373f7ed0ccc44e147238195910
|
|
7
|
+
data.tar.gz: 99e3af37c79faff9aee6c81b2e573d5d309973cafdf54cb80f6090a8165018540990e5cb3376012d94ea433596a63425984811c241779c81e6b3580a40617c15
|
data/lib/parallel_tests/tasks.rb
CHANGED
|
@@ -14,7 +14,7 @@ module ParallelTests
|
|
|
14
14
|
def run_in_parallel(cmd, options={})
|
|
15
15
|
count = " -n #{options[:count]}" unless options[:count].to_s.empty?
|
|
16
16
|
executable = File.expand_path("../../../bin/parallel_test", __FILE__)
|
|
17
|
-
command = "#{executable} --exec '#{cmd}'#{count}#{' --non-parallel' if options[:non_parallel]}"
|
|
17
|
+
command = "#{Shellwords.escape executable} --exec '#{cmd}'#{count}#{' --non-parallel' if options[:non_parallel]}"
|
|
18
18
|
abort unless system(command)
|
|
19
19
|
end
|
|
20
20
|
|
|
@@ -147,7 +147,7 @@ namespace :parallel do
|
|
|
147
147
|
end
|
|
148
148
|
executable = File.join(File.dirname(__FILE__), '..', '..', 'bin', 'parallel_test')
|
|
149
149
|
|
|
150
|
-
command = "#{executable} #{type} --type #{test_framework} " \
|
|
150
|
+
command = "#{Shellwords.escape executable} #{type} --type #{test_framework} " \
|
|
151
151
|
"-n #{count} " \
|
|
152
152
|
"--pattern '#{pattern}' " \
|
|
153
153
|
"--test-options '#{options}'"
|
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: 2.2.
|
|
4
|
+
version: 2.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Grosser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-01-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: parallel
|