#4 fix test failure running with tags and on docker and qcow2 inventories
Merged 6 years ago by astepano. Opened 6 years ago by bgoncalv.
rpms/ bgoncalv/standard-test-roles fix-prepare-task  into  master

file modified
+4
@@ -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

@@ -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}}"

@@ -4,5 +4,4 @@ 

  - name: Remove a test package from test-environment

    package:

      name: "{{req_pkg}}"

-     #state: absent

-     state: present

+     state: absent