mirror of
https://github.com/inspec/inspec
synced 2024-11-29 08:00:33 +00:00
Removed old test:isolated in favor of new one.
Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
5e7c6d87e6
commit
2cb05f2c66
1 changed files with 1 additions and 14 deletions
15
Rakefile
15
Rakefile
|
@ -86,19 +86,6 @@ namespace :test do
|
||||||
puts missing.sort
|
puts missing.sort
|
||||||
end
|
end
|
||||||
|
|
||||||
task :isolated do
|
|
||||||
failures = Dir[*GLOBS]
|
|
||||||
failures.reject! do |file|
|
|
||||||
system(Gem.ruby, "-Ilib:test", file)
|
|
||||||
end
|
|
||||||
|
|
||||||
unless failures.empty?
|
|
||||||
puts "These test files failed:\n"
|
|
||||||
puts failures
|
|
||||||
raise "broken tests..."
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# rubocop:disable Style/BlockDelimiters,Layout/ExtraSpacing,Lint/AssignmentInCondition
|
# rubocop:disable Style/BlockDelimiters,Layout/ExtraSpacing,Lint/AssignmentInCondition
|
||||||
|
|
||||||
def n_threads_run(n_workers, jobs)
|
def n_threads_run(n_workers, jobs)
|
||||||
|
@ -118,7 +105,7 @@ namespace :test do
|
||||||
}.each(&:join)
|
}.each(&:join)
|
||||||
end
|
end
|
||||||
|
|
||||||
task :isolated2 do
|
task :isolated do
|
||||||
require "fileutils"
|
require "fileutils"
|
||||||
require "thread"
|
require "thread"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue