tests/installed: Move tasks into tasks/ directory

It's cleaner to separate test playbooks from their tasks.

Closes: #1535
Approved by: jlebon
This commit is contained in:
Colin Walters 2018-04-11 13:33:31 -04:00 committed by Atomic Bot
parent 7357d346c4
commit b9fc3eaa15
4 changed files with 11 additions and 2 deletions

View File

@ -8,7 +8,10 @@
use_git_build: True
tests: "."
tasks:
- import_tasks: overlay-git.yml
- import_tasks: tasks/query-host.yml
- set_fact:
rpmostree_initial_deployment: "{{ rpmostree_status[\"deployments\"][0] }}"
- import_tasks: tasks/overlay-git.yml
when: use_git_build
# Next copy all of the tests/ directory
- name: Copy test data

View File

@ -10,7 +10,8 @@
# Arbitrary...we want some parallelism
batching_factor: 4
tasks:
- import_tasks: overlay-git.yml
- import_tasks: tasks/query-host.yml
- import_tasks: tasks/overlay-git.yml
when: use_git_build
# Next copy all of the tests/ directory
- name: Copy test data

View File

@ -0,0 +1,5 @@
- command: rpm-ostree status --json
changed_when: False
register: rpmostree_status_json
- set_fact:
rpmostree_status: "{{ rpmostree_status_json.stdout | from_json }}"