Skip to content

Commit

Permalink
Updated from OpenStack Ansible Tests
Browse files Browse the repository at this point in the history
Change-Id: I1764bceed8e1f67175820a8de1403e7934238498
  • Loading branch information
OpenStack Proposal Bot committed Jul 18, 2019
1 parent 58f04cb commit f623641
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
31 changes: 21 additions & 10 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,37 @@ Vagrant.configure(2) do |config|
./run_tests.sh
SHELL

config.vm.define "ubuntu1604" do |xenial|
xenial.disksize.size = "40GB"
xenial.vm.box = "ubuntu/xenial64"
config.vm.define "centos7" do |centos7|
centos7.vm.box = "centos/7"
end

config.vm.define "ubuntu1804" do |bionic|
bionic.disksize.size = "40GB"
bionic.vm.box = "ubuntu/bionic64"
config.vm.define "debian8" do |debian8|
debian8.vm.box = "debian/jessie64"
end

config.vm.define "debian9" do |debian9|
debian9.vm.box = "debian/stretch64"
end

config.vm.define "gentoo" do |gentoo|
gentoo.vm.box = "generic/gentoo"
end

config.vm.define "opensuse150" do |leap150|
leap150.vm.box = "opensuse/openSUSE-15.0-x86_64"
end

config.vm.define "opensuse151" do |leap151|
leap151.vm.box = "opensuse/openSUSE-15.1-x86_64"
config.vm.define "opensuse151" do |leap150|
leap150.vm.box = "opensuse/openSUSE-15.1-x86_64"
end

config.vm.define "centos7" do |centos7|
centos7.vm.box = "centos/7"
config.vm.define "ubuntu1604" do |xenial|
xenial.disksize.size = "40GB"
xenial.vm.box = "ubuntu/xenial64"
end

config.vm.define "ubuntu1804" do |bionic|
bionic.disksize.size = "40GB"
bionic.vm.box = "ubuntu/bionic64"
end
end
6 changes: 4 additions & 2 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ case ${ID,,} in
esac

# Install git so that we can clone the tests repo if git is not available
which git &>/dev/null || eval sudo "${pkg_mgr_cmd}" git
case ${ID,,} in
gentoo) which git &>/dev/null || eval sudo "${pkg_mgr_cmd}" dev-vcs/git ;;
*) which git &>/dev/null || eval sudo "${pkg_mgr_cmd}" git ;;
esac

# Clone the tests repo for access to the common test script
if [[ ! -d "${COMMON_TESTS_PATH}" ]]; then
Expand All @@ -92,4 +95,3 @@ fi

# Execute the common test script
source tests/common/run_tests_common.sh

0 comments on commit f623641

Please sign in to comment.