mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 01:03:09 +00: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:
committed by
Toshio Kuratomi
parent
adcb87f781
commit
d8f66defd0
@@ -52,7 +52,7 @@
|
||||
copy: src=foo.txt dest={{output_dir}}/foo.txt
|
||||
|
||||
- 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
|
||||
|
||||
- name: verify templated file matches known good
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
copy: src=foo.txt dest={{output_dir}}/foo.txt
|
||||
|
||||
- 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
|
||||
|
||||
- name: verify templated file matches known good
|
||||
|
||||
Reference in New Issue
Block a user