porthole/tools/gate/playbooks/make-functional-tests.yaml
astebenkova 755e8e5c6f [zuul] Move logs playbook to post-run
If testing playbooks fail, logs won't be collected.
We need to gather logs regardless of the job's result.
+ change StorageClassName to "standard"
Change-Id: I5eb5a5cef6e63df72a2ff8092d1d8fc756c9a692

Change-Id: I178291863c2c1b385825a51b5e16cd230180578d
2024-02-14 03:56:35 +00:00

35 lines
1.1 KiB
YAML

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- hosts: primary
tasks:
- name: Execute the make target for unit testing
block:
- make:
chdir: "{{ zuul.project.src_dir }}/{{ args.chdir }}"
target: unit_tests
register: result
failed_when: result.failed
- debug:
var: result
- name: Execute the make target for features testing
block:
- make:
chdir: "{{ zuul.project.src_dir }}/{{ args.chdir }}"
target: feature_tests
register: result
failed_when: result.failed
- debug:
var: result