mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Ignore difference on whitespace (#17302)
While trying to fix the test suite on python3, I noticed this test fail due to to_json adding more whitespace in python3 than in python2. So -w should ignored those differences.
This commit is contained in:
parent
adcb87f781
commit
d8f66defd0
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@
|
||||||
copy: src=foo.txt dest={{output_dir}}/foo.txt
|
copy: src=foo.txt dest={{output_dir}}/foo.txt
|
||||||
|
|
||||||
- name: compare templated file to known good
|
- name: compare templated file to known good
|
||||||
shell: diff {{output_dir}}/foo.templated {{output_dir}}/foo.txt
|
shell: diff -w {{output_dir}}/foo.templated {{output_dir}}/foo.txt
|
||||||
register: diff_result
|
register: diff_result
|
||||||
|
|
||||||
- name: verify templated file matches known good
|
- name: verify templated file matches known good
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
copy: src=foo.txt dest={{output_dir}}/foo.txt
|
copy: src=foo.txt dest={{output_dir}}/foo.txt
|
||||||
|
|
||||||
- name: compare templated file to known good
|
- name: compare templated file to known good
|
||||||
shell: diff {{output_dir}}/foo.templated {{output_dir}}/foo.txt
|
shell: diff -w {{output_dir}}/foo.templated {{output_dir}}/foo.txt
|
||||||
register: diff_result
|
register: diff_result
|
||||||
|
|
||||||
- name: verify templated file matches known good
|
- name: verify templated file matches known good
|
||||||
|
|
Loading…
Reference in a new issue