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
|
||||
|
||||
- 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
|
||||
|
|
Loading…
Reference in a new issue