From 75abaa57f4da26ee57b107b226b165e9e8146efd Mon Sep 17 00:00:00 2001 From: Hideki Saito Date: Mon, 4 Oct 2021 13:18:09 +0900 Subject: [PATCH] Fix create working directory before test Signed-off-by: Hideki Saito --- tests/integration/targets/acl/tasks/acl.yml | 10 ++++++++++ tests/integration/targets/synchronize/tasks/main.yml | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/integration/targets/acl/tasks/acl.yml b/tests/integration/targets/acl/tasks/acl.yml index 7770ed4..30cfebb 100644 --- a/tests/integration/targets/acl/tasks/acl.yml +++ b/tests/integration/targets/acl/tasks/acl.yml @@ -23,6 +23,16 @@ group: name: "{{ test_group }}" +- name: Clean up working directory and files + file: + path: "{{ output_dir }}" + state: absent + +- name: Create working directory + file: + path: "{{ output_dir }}" + state: directory + - name: Create ansible file file: path: "{{ test_file }}" diff --git a/tests/integration/targets/synchronize/tasks/main.yml b/tests/integration/targets/synchronize/tasks/main.yml index 931f20a..045aefc 100644 --- a/tests/integration/targets/synchronize/tasks/main.yml +++ b/tests/integration/targets/synchronize/tasks/main.yml @@ -2,11 +2,11 @@ package: name: rsync when: ansible_distribution != "MacOSX" -- name: Clean up the working directory and files +- name: Clean up working directory and files file: path: "{{ output_dir }}" state: absent -- name: Create the working directory +- name: Create working directory file: path: "{{ output_dir }}" state: directory