diff options
author | Alvaro Saurin <alvaro.saurin@gmail.com> | 2017-10-19 17:39:31 +0200 |
---|---|---|
committer | Alvaro <alvaro.saurin@gmail.com> | 2017-11-27 13:04:37 +0100 |
commit | c7cc7221d46e8fa7ee7d64c7eab64f5515980fc1 (patch) | |
tree | 94f923062c9ff708b7f5c80621a6f6634befd0b2 /travis/run-tests-inside-guest | |
parent | 39b7567db8477cebf98ca7ff225c2a356b42bd98 (diff) | |
download | terraform-provider-libvirt-c7cc7221d46e8fa7ee7d64c7eab64f5515980fc1.tar terraform-provider-libvirt-c7cc7221d46e8fa7ee7d64c7eab64f5515980fc1.tar.gz |
Simplify the wait_for_leases mechanism
Diffstat (limited to 'travis/run-tests-inside-guest')
-rwxr-xr-x | travis/run-tests-inside-guest | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/travis/run-tests-inside-guest b/travis/run-tests-inside-guest index a860a4d7..32ff9773 100755 --- a/travis/run-tests-inside-guest +++ b/travis/run-tests-inside-guest @@ -1,19 +1,23 @@ #!/bin/bash set -x +base="/root/go/src/github.com/dmacvicar" + unset http_proxy -export GOROOT=/usr/lib/go-1.9/ -export GOPATH=/root/go +export GOROOT="/usr/lib/go-1.9/" +export GOPATH="/root/go" export PATH=$GOPATH/bin:$GOROOT/bin:$PATH -mkdir -p /root/go/src/github.com/dmacvicar/ -cp -r /code/ /root/go/src/github.com/dmacvicar/terraform-provider-libvirt -cd /root/go/src/github.com/dmacvicar/terraform-provider-libvirt +mkdir -p $base +cp -r /code/ $base/terraform-provider-libvirt +cd $base/terraform-provider-libvirt go build . -export TERRAFORM_LIBVIRT_TEST_DOMAIN_TYPE=qemu +export TERRAFORM_LIBVIRT_TEST_DOMAIN_TYPE="qemu" export LIBVIRT_DEFAULT_URI="qemu:///system" -export TF_ACC=true +export TF_ACC="true" +export TF_SKIP_QEMU_AGENT="true" + go test -v -covermode=count -coverprofile=profile.cov -timeout=1200s ./libvirt |