mirror of
https://github.com/ansible/ansible.git
synced 2026-02-03 20:40:24 -05:00
Fix newline issue in test content creation
Use 'echo -n' instead of 'echo' to create test files without trailing newlines, which was causing content assertion failures in CI tests.
This commit is contained in:
parent
0090c2c26c
commit
46a746b602
2 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@
|
|||
- name: Create file in old home
|
||||
shell: |
|
||||
mkdir -p /tmp/movefuser
|
||||
echo "Old home file" > /tmp/movefuser/testfile.txt
|
||||
echo -n "Old home file" > /tmp/movefuser/testfile.txt
|
||||
chown movefuser:movefuser /tmp/movefuser/testfile.txt
|
||||
become: true
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
- name: Create test file in initial home directory
|
||||
shell: |
|
||||
mkdir -p /tmp/movehome_initial
|
||||
echo "This is a test file in the initial home directory" > /tmp/movehome_initial/testfile.txt
|
||||
echo -n "This is a test file in the initial home directory" > /tmp/movehome_initial/testfile.txt
|
||||
chown movehomeuser:movehomeuser /tmp/movehome_initial/testfile.txt
|
||||
become: true
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue