mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-08 19:50:30 -07:00
Print debug output during tests.
This commit is contained in:
parent
d3ebdd2874
commit
6fe9cf11f1
4 changed files with 22 additions and 1 deletions
|
@ -32,6 +32,15 @@
|
||||||
that:
|
that:
|
||||||
- cmd.stdout == "dummy2"
|
- cmd.stdout == "dummy2"
|
||||||
|
|
||||||
|
- name: Get dummymain alternatives output
|
||||||
|
command:
|
||||||
|
argv: '{{ alternatives_command }} --display dummymain'
|
||||||
|
register: result
|
||||||
|
|
||||||
|
- name: Print result
|
||||||
|
debug:
|
||||||
|
var: result.stdout_lines
|
||||||
|
|
||||||
- name: Subcommands are not removed if not specified
|
- name: Subcommands are not removed if not specified
|
||||||
alternatives:
|
alternatives:
|
||||||
name: dummymain
|
name: dummymain
|
||||||
|
@ -75,4 +84,13 @@
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- cmd.rc == 2
|
- cmd.rc == 2
|
||||||
- '"No such file" in cmd.msg'
|
- '"No such file" in cmd.msg'
|
||||||
|
|
||||||
|
- name: Get dummymain alternatives output
|
||||||
|
command:
|
||||||
|
argv: '{{ alternatives_command }} --display dummymain'
|
||||||
|
register: result
|
||||||
|
|
||||||
|
- name: Print result
|
||||||
|
debug:
|
||||||
|
var: result.stdout_lines
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
---
|
---
|
||||||
alternatives_dir: /var/lib/dpkg/alternatives/
|
alternatives_dir: /var/lib/dpkg/alternatives/
|
||||||
|
alternatives_command: update-alternatives
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
---
|
---
|
||||||
alternatives_dir: /var/lib/rpm/alternatives/
|
alternatives_dir: /var/lib/rpm/alternatives/
|
||||||
|
alternatives_command: update-alternatives
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
---
|
---
|
||||||
alternatives_dir: /var/lib/alternatives/
|
alternatives_dir: /var/lib/alternatives/
|
||||||
|
alternatives_command: update-alternatives
|
||||||
|
|
Loading…
Add table
Reference in a new issue