@@ -617,33 +617,24 @@ steps:
617617 - mkdir -p dist/artifacts
618618 - cp /tmp/artifacts/* dist/artifacts/
619619 - docker stop registry && docker rm registry
620- # Cleanup VMs running, happens if a previous test panics
621- # Cleanup inactive domains, happens if previous test is canceled
622- - |
623- VMS=$(virsh list --name | grep '_server-\|_agent-' || true)
624- if [ -n "$VMS" ]; then
625- for vm in $VMS
626- do
627- virsh destroy $vm
628- virsh undefine $vm --remove-all-storage
629- done
630- fi
631- VMS=$(virsh list --name --inactive | grep '_server-\|_agent-' || true)
632- if [ -n "$VMS" ]; then
633- for vm in $VMS
634- do
635- virsh undefine $vm
636- done
637- fi
620+ # Cleanup VMs that are older than 2h. Happens if a previous test panics or is canceled
621+ - tests/e2e/scripts/cleanup_vms.sh
638622 - docker run -d -p 5000:5000 -e REGISTRY_PROXY_REMOTEURL=https://registry-1.docker.io --name registry registry:2
639- - cd tests/e2e/validatecluster
640- - vagrant destroy -f
641- - go test -v -timeout=45m ./validatecluster_test.go -ci -local
642- - cp ./coverage.out /tmp/artifacts/validate-coverage.out
643- - cd ../secretsencryption
644- - vagrant destroy -f
645- - go test -v -timeout=30m ./secretsencryption_test.go -ci -local
646- - cp ./coverage.out /tmp/artifacts/se-coverage.out
623+ - |
624+ cd tests/e2e/validatecluster
625+ vagrant destroy -f
626+ go test -v -timeout=45m ./validatecluster_test.go -ci -local
627+ cp ./coverage.out /tmp/artifacts/validate-coverage.out
628+ - |
629+ cd ../secretsencryption
630+ vagrant destroy -f
631+ go test -v -timeout=30m ./secretsencryption_test.go -ci -local
632+ cp ./coverage.out /tmp/artifacts/se-coverage.out
633+ - |
634+ cd ../splitserver
635+ vagrant destroy -f
636+ go test -v -timeout=30m ./splitserver_test.go -ci -local
637+ cp ./coverage.out /tmp/artifacts/split-coverage.out
647638 - |
648639 if [ "$DRONE_BUILD_EVENT" = "pull_request" ]; then
649640 cd ../upgradecluster
@@ -669,6 +660,7 @@ steps:
669660 files :
670661 - /tmp/artifacts/validate-coverage.out
671662 - /tmp/artifacts/se-coverage.out
663+ - /tmp/artifacts/split-coverage.out
672664 - /tmp/artifacts/upgrade-coverage.out
673665 flags :
674666 - e2etests
0 commit comments