replace NBSP (non-blocking space) character with a regular SPACE char (#3071)

This commit is contained in:
Alexei Znamensky 2021-07-25 23:53:38 +12:00 committed by GitHub
commit 20db4fc560
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 45 additions and 45 deletions

View file

@ -3,7 +3,7 @@
name: dummy
path: '/usr/bin/dummy{{ item }}'
link: /usr/bin/dummy
priority: '{{ 60 + item|int }}'
priority: '{{ 60 + item|int }}'
register: alternative
- name: execute dummy command
@ -11,13 +11,13 @@
register: cmd
- name: check if link group is in manual mode
shell: 'head -n1 {{ alternatives_dir }}/dummy | grep "^manual$"'
shell: 'head -n1 {{ alternatives_dir }}/dummy | grep "^manual$"'
- name: check expected command was executed
assert:
that:
- 'alternative is changed'
- 'cmd.stdout == "dummy{{ item }}"'
- 'cmd.stdout == "dummy{{ item }}"'
- name: check that alternative has been updated
command: "grep -Pzq '/bin/dummy{{ item }}\\n{{ 60 + item|int }}' '{{ alternatives_dir }}/dummy'"