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
This commit is contained in:
parent
fbdd81f789
commit
1f78388328
@ -7,20 +7,20 @@
|
|||||||
- name: Write a second test file
|
- name: Write a second test file
|
||||||
copy:
|
copy:
|
||||||
content: "Second test file"
|
content: "Second test file"
|
||||||
dest: "/tmp/test-output.log"
|
dest: "/tmp/test-output.something.log"
|
||||||
- name: Test stage-output with explicit files
|
- name: Test stage-output with explicit files
|
||||||
include_role:
|
include_role:
|
||||||
name: stage-output
|
name: stage-output
|
||||||
vars:
|
vars:
|
||||||
zuul_copy_output:
|
zuul_copy_output:
|
||||||
/tmp/test-output.txt: logs
|
/tmp/test-output.txt: logs
|
||||||
/tmp/test-output.log: logs
|
/tmp/test-output.something.log: logs
|
||||||
extensions_to_txt:
|
extensions_to_txt:
|
||||||
log: true
|
log: true
|
||||||
txt: false
|
txt: false
|
||||||
- name: Check the file was renamed
|
- name: Check the file was renamed
|
||||||
stat:
|
stat:
|
||||||
path: /home/zuul/logs/test-output_log.txt
|
path: /home/zuul/logs/test-output.something_log.txt
|
||||||
register: renamed_file_stat
|
register: renamed_file_stat
|
||||||
- name: Fail if file was not renamed
|
- name: Fail if file was not renamed
|
||||||
fail:
|
fail:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user