From 46a746b602d641375c3e269e6380e59c0acdddf1 Mon Sep 17 00:00:00 2001 From: Gajesh Bhat Date: Sat, 16 Aug 2025 03:47:46 -0700 Subject: [PATCH] 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. --- test/integration/targets/user/tasks/test_issue_85521.yml | 2 +- test/integration/targets/user/tasks/test_move_home_alpine.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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