From 43a343a47ad5352d2e2d6a81c2756702adfde550 Mon Sep 17 00:00:00 2001 From: Bruno Goncalves Date: Mar 16 2018 14:36:45 +0000 Subject: fix test failure running with tags and on docker and qcow2 inventories --- diff --git a/tests/prepare.yml b/tests/prepare.yml index e375046..20cc873 100644 --- a/tests/prepare.yml +++ b/tests/prepare.yml @@ -6,4 +6,8 @@ remote_artifacts: /tmp/artifacts/ tasks: - include_tasks: shared-tasks/artifacts.yml + tags: + - always - include_tasks: shared-tasks/req-pkg.yml + tags: + - always diff --git a/tests/shared-tasks/artifacts.yml b/tests/shared-tasks/artifacts.yml index 0bcf897..2c51da3 100644 --- a/tests/shared-tasks/artifacts.yml +++ b/tests/shared-tasks/artifacts.yml @@ -1,14 +1,4 @@ # STR requires that artifacts dir must be absent -- name: "Check if {{artifacts}} is absent at test-runner" - stat: - path: "{{artifacts}}" - register: st_tr - delegate_to: localhost - -- fail: - msg: "Remove {{artifacts}} before test run at test-runner." - when: st_tr.stat.exists - - name: "Check if {{artifacts}} is absent at test-environment." stat: path: "{{remote_artifacts}}" diff --git a/tests/shared-tasks/req-pkg.yml b/tests/shared-tasks/req-pkg.yml index 59aef1d..59fa5fb 100644 --- a/tests/shared-tasks/req-pkg.yml +++ b/tests/shared-tasks/req-pkg.yml @@ -4,5 +4,4 @@ - name: Remove a test package from test-environment package: name: "{{req_pkg}}" - #state: absent - state: present + state: absent