3 unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
10 on hosts, "mkdir -p #{hosts.first['distmoduledir']}"
13 # We ask the host to interpolate it's distmoduledir because we don't
14 # actually know it on Windows until we've let it redirect us (depending
15 # on whether we're running as a 32/64 bit process on 32/64 bit Windows
16 moduledir = on(host, "echo #{host['distmoduledir']}").stdout.chomp
17 on host, "mkdir -p #{moduledir}"
21 RSpec.configure do |c|
23 proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
25 # Readable test descriptions
26 c.formatter = :documentation
28 # Configure all nodes in nodeset
31 # ensure test dependencies are available on all hosts
33 copy_module_to(host, :source => proj_root, :module_name => 'vcsrepo')
34 case fact_on(host, 'osfamily')
36 install_package(host, 'git')
38 install_package(host, 'git-core')
40 if !check_for_package(host, 'git')
41 puts "Git package is required for this module"
45 on host, 'git config --global user.email "root@localhost"'
46 on host, 'git config --global user.name "root"'