require File.expand_path('../../../spec/shared_spec_helper', __FILE__)

require 'fakefs/spec_helpers'

SPEC_ROOT = File.expand_path(File.dirname(__FILE__))

RSpec.configure do |config|
  unless ENV['BOSH_OS_BATS']
    puts "!!! EXCLUDING SYSTEM SERVICE SPECS !!!"
    config.filter_run_excluding :type => :os
  end
end

require File.expand_path('../../../spec/shared_spec_helper', __FILE__)

require 'fakefs/spec_helpers'

SPEC_ROOT = File.expand_path(File.dirname(__FILE__))

RSpec.configure do |config|
  unless ENV['BOSH_OS_BATS'] =~ (/^(true|yes|y|1)$/i)
    puts "!!! EXCLUDING SYSTEM SERVICE SPECS !!!"
    config.filter_run_excluding :type => :os
  end
end

Allow to implicitly disable OS bats by setting BOSH_OS_BATS to false
Allow to implicitly disable OS bats by setting BOSH_OS_BATS to false

Signed-off-by: Edward Zhang <acecdb50c47454737d0b9a0b29c19169fafbd4f7@cn.ibm.com>
