---
# Copyright 2015, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


# Run the tempest playbook to install tempest
- include: ../openstack-ansible/playbooks/os-tempest-install.yml
  tags:
    - tempest_install

- name: Execute Tempest Tests
  hosts: utility[0]
  user: root
  tasks:
    - name: Execute tempest tests
      shell: |
        RUN_TEMPEST_OPTS={{ tempest_run_tempest_opts | join(' ') }}
        TESTR_OPTS={{ tempest_testr_opts | join(' ') }}
        bash /opt/openstack_tempest_gate.sh {{ tempest_test_sets }}
      changed_when: false
  tags:
    - tempest_execute_tests



---
# Copyright 2015, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


# Run the tempest playbook to install tempest
- include: ../openstack-ansible/playbooks/os-tempest-install.yml
  tags:
    - tempest_install

- name: Execute Tempest Tests
  hosts: utility[0]
  user: root
  tasks:
    - name: Execute tempest tests
      shell: |
        export RUN_TEMPEST_OPTS={{ tempest_run_tempest_opts | join(' ') }}
        export TESTR_OPTS={{ tempest_testr_opts | join(' ') }}
        bash /opt/openstack_tempest_gate.sh {{ tempest_test_sets }}
      changed_when: false
  tags:
    - tempest_execute_tests



Add export to RUN_TEMPEST_OPTS and TESTR_OPTS
Add export to RUN_TEMPEST_OPTS and TESTR_OPTS

This is so the openstack_tempest_gate.sh script picks up
these variables when invoked.

Connects https://github.com/rcbops/u-suk-dev/issues/1680
