#5 Fix test to pass on Fedora CI
Merged 5 years ago by mskalick. Opened 5 years ago by bgoncalv.
rpms/ bgoncalv/python-cheetah fix-test  into  master

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

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

Pull-Request has been merged by mskalick

5 years ago