From 6c77f3ea165cc47be62cb76261794b71be4906b7 Mon Sep 17 00:00:00 2001 From: Bruno Goncalves Date: Jun 22 2018 06:10:42 +0000 Subject: Fix test to pass on Fedora CI Switch to use standard-test-basic role as it solves some issues: 1. Should be possible to set artifacts directory using environment variables 2. fetch does not work for directory --- diff --git a/tests/builtin-tests.yml b/tests/builtin-tests.yml index efe4a37..9d0b9ba 100644 --- a/tests/builtin-tests.yml +++ b/tests/builtin-tests.yml @@ -1,27 +1,15 @@ --- - hosts: localhost - vars: - - artifacts: ./artifacts - tags: - - atomic - - classic - - container - tasks: - - name: Make artifacts directory - file: path={{ artifacts }} state=directory owner=root mode=755 recurse=yes - - - name: Install optional dependencies - package: name={{ item }} state=present - with_items: - - python-markdown - - python-pygments - - - block: - - name: Run cheetah built-in tests - shell: cheetah test > {{ artifacts }}/test.log 2>&1 - - - always: - - name: Pull out the artifacts - fetch: - dest: "{{ artifacts }}/" - src: "{{ artifacts }}/" + roles: + - role: standard-test-basic + tags: + - atomic + - classic + - container + tests: + - cheetah-test: + dir: ./ + run: cheetah test 2>&1 + required_packages: + - python3-markdown + - python3-pygments