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:
Gajesh Bhat 2025-08-16 03:47:46 -07:00
parent 0090c2c26c
commit 46a746b602
No known key found for this signature in database
GPG key ID: E042978EE39095C5
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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