mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
check return codes
This commit is contained in:
parent
5cc2f5cc2d
commit
9d326b1016
3 changed files with 4 additions and 2 deletions
1
Makefile
1
Makefile
|
|
@ -42,6 +42,7 @@ run_tests = tests="$(shell ls tests/$(1)/$(2)_*)"; \
|
|||
for test in $$tests; \
|
||||
do \
|
||||
$(foreach var,$(_VARS),$(var)=$($(var))) ./$${test}; \
|
||||
RC=$$?; if [ $$RC != 0 ]; then exit $$RC; fi; \
|
||||
done; \
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -13,3 +13,4 @@
|
|||
ansible.builtin.assert:
|
||||
that:
|
||||
- services_state['ansible_facts']['services']['flatpak-add-fedora-repos.service']['status'] == 'disabled'
|
||||
fail_msg: 'flatpak-add-fedora-repos.service is not disabled'
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
- "'VLC' in flatpaks.stdout"
|
||||
fail_msg: 'VLC is not installed'
|
||||
|
||||
- name: Check that VLC is installed
|
||||
- name: Check that Firefox is installed
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'Firefox' in flatpaks.stdout"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue