tobiko/infrared_plugin/main.yaml
Federico Ressi d7cd6810d5 Unify the location of InfraRed plugin test result files
The different InfraRed plugins (Tempest, Tobiko, etc.) recollect
the testing result files to different directories in the workspace.

The default location for result files will be
'{{ inventory_dir }}/test_results' if not specified
by the --results-dir command line option.

Change-Id: I57ac3ca03cc7bd381980b5484bf7c3d9ccca56bb
2022-03-17 14:55:19 +00:00

18 lines
356 B
YAML

---
- hosts: 'localhost'
roles:
- role: tobiko-ir-init
- hosts: >
{{ test_host |
default(hostvars.localhost.test_host) |
default('localhost') }}
gather_facts: yes
tasks:
- include_role: name=tobiko-ir-run
vars:
test_collect_dir: >
{{ test_collect_dir | default(inventory_dir + '/test_results') }}