From 1f78388328c275f21fe8b21ec05a07774401bb54 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 6 Sep 2022 16:15:15 -0700 Subject: [PATCH] Improve stage-output functional test This adds extra . separators to the file we check is renamed. This came up as a real world issue with devstack when testing the follow on update to stage-output. We put this in a separate change to ensure the old and new behavior is consistent. Change-Id: I3b7504cfd90a4e7523ce88c50e90b2e9004e05ee --- test-playbooks/stage-output.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-playbooks/stage-output.yaml b/test-playbooks/stage-output.yaml index 78c8c7460..7662efafc 100644 --- a/test-playbooks/stage-output.yaml +++ b/test-playbooks/stage-output.yaml @@ -7,20 +7,20 @@ - name: Write a second test file copy: content: "Second test file" - dest: "/tmp/test-output.log" + dest: "/tmp/test-output.something.log" - name: Test stage-output with explicit files include_role: name: stage-output vars: zuul_copy_output: /tmp/test-output.txt: logs - /tmp/test-output.log: logs + /tmp/test-output.something.log: logs extensions_to_txt: log: true txt: false - name: Check the file was renamed stat: - path: /home/zuul/logs/test-output_log.txt + path: /home/zuul/logs/test-output.something_log.txt register: renamed_file_stat - name: Fail if file was not renamed fail: