- hosts: primary
  name: Clear test env
  tasks:
    - name: clear test env
      shell:
        cmd: |
            /opt/stack/heat/heat_integrationtests/cleanup_test_env.sh
        executable: /bin/bash
        chdir: "{{ zuul.project.src_dir }}"
      environment:
        DEVSTACK_BASE_DIR: "{{ devstack_base_dir }}"
      become: true

- hosts: tempest
  become: true
  roles:
    - role: fetch-subunit-output
      zuul_work_dir: '{{ devstack_base_dir }}/tempest'
    - role: process-stackviz
