211a579dee
* Add .gitignore to not commit files generated by testing scripts (run_*.sh) * Cleanup generated files in functions, before running tests. It avois manual cleanup. Change-Id: I81b4403f7ad083c8339b9bf4dbf184be69f3654f
18 lines
469 B
Bash
18 lines
469 B
Bash
#!/bin/bash
|
|
#
|
|
# functions - puppet-openstack_spec_helper specific functions
|
|
#
|
|
|
|
prepare_environment() {
|
|
rm -rf .bundled_gems puppet-whazz default-config.yaml
|
|
mkdir .bundled_gems
|
|
export GEM_HOME=`pwd`/.bundled_gems
|
|
gem install bundler --no-rdoc --no-ri --verbose
|
|
|
|
# Build fake module
|
|
OS_NEW_MODULE_TEST=yes bash -x ./contrib/bootstrap.sh whazz dummy
|
|
cd puppet-whazz/openstack/puppet-modulesync-configs/modules/puppet-whazz
|
|
|
|
$GEM_HOME/bin/bundle install
|
|
}
|