diff --git a/test/integration/targets/user/tasks/test_issue_85521.yml b/test/integration/targets/user/tasks/test_issue_85521.yml index 5252b3f9ecb..31d9dad63cb 100644 --- a/test/integration/targets/user/tasks/test_issue_85521.yml +++ b/test/integration/targets/user/tasks/test_issue_85521.yml @@ -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 diff --git a/test/integration/targets/user/tasks/test_move_home_alpine.yml b/test/integration/targets/user/tasks/test_move_home_alpine.yml index 624d6f55a2d..e862fa2f3d5 100644 --- a/test/integration/targets/user/tasks/test_move_home_alpine.yml +++ b/test/integration/targets/user/tasks/test_move_home_alpine.yml @@ -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