On 06.09.2017 12:33, Kamil Paral wrote:
Hello,
I'd like to get a few clarifications regarding the default test playbook
example here:
https://fedoraproject.org/wiki/CI/Tests#Wrapping_a_script_test
First, the example seems to suggest that all binaries should be placed
in /usr/local/bin:
- name: Create the folder where we will store the tests
action: file state=directory path={{ item }} owner=root group=root
with_items:
- /usr/local/bin
- name: Install the test files
copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }} mode=0755
with_items:
- {file: test-simple, dest: test-simple }
But I don't see such a requirement in the SI. Why shouldn't I run the
test executable from its current location (i.e. the git checkout
directory)? And if they can, why make the example unnecessarily complex?
I looked through the thread but didn't find an answer to this part of
your question.
This is because when running against a docker container or atomic host
test subject (qcow2 and docker respectively) such shell script tests
(ditto for beakerlib) need to be placed inside the test subject in order
to be run.
Cheers,
Stef