5 Commits

Author SHA1 Message Date
Federico Ressi
d7cd6810d5 Unify the location of InfraRed plugin test result files
The different InfraRed plugins (Tempest, Tobiko, etc.) recollect
the testing result files to different directories in the workspace.

The default location for result files will be
'{{ inventory_dir }}/test_results' if not specified
by the --results-dir command line option.

Change-Id: I57ac3ca03cc7bd381980b5484bf7c3d9ccca56bb
2022-03-17 14:55:19 +00:00
Federico Ressi
077dc49e40 Move CI tasks from roles to infrared_plugin/roles
- create plugin roles folder with tasks required
  only by the plugin
- remove unused roles from tobiko roles folder
- link tobiko roles one by one to plugin roles folder

Change-Id: If74642f04b451cffc61c55560cd5004db14475ae
2020-05-14 09:23:47 +00:00
Federico Ressi
7bdb82d81b Fix Jenkins vars inclusion
Change-Id: I70aa53e07273688461809b771fa8442bddb64ea2
2020-05-12 10:23:08 +02:00
Alex Katz
32c91c7264 Added --ignore-test-failures CLI flag
Tox venv commands are expected to return a code that indicates
test cases final outcome:

 - 0 => any test vase has failed
 - 1 => some test case has failed
 - not in [0, 1] => any other error

This change handles the special case when some test cases have
failed. In any of below cases:
 - JENKINS_URL environment variable is defined on controller node
 - --ignore-test-failure flag is passed to IR plugin
then the plugin runs without treating it as an error.

This has been introduced because when running the plugin from
a Jenkins slave host, Jenkins itself is expected to check test
case have failed looking at produced Junit XML artifacts.

Change-Id: Ia7d7f736ae18a7561dced2271228d86ca658e892
2020-05-11 13:57:26 +00:00
Federico Ressi
1f4e11b118 Update IR plugin
Change-Id: I8a4c483a4ac4b1f8dd1a3ec729ffe5bf6410073e
2020-04-29 05:38:11 +00:00