Skip to content

Commit 7b81817

Browse files
committed
11_immutable.cf: Make sure to clean up all immutable files
Failing to do so will cause the build to fail later on. ``` 13:16:26 rsync: [generator] delete_file: unlink(tmp/12_immutable.txt.nuked) failed: Operation not permitted (1) ``` Ticket: ENT-10961, CFE-1840 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent de91e65 commit 7b81817

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/acceptance/10_files/unsafe/11_immutable.cf

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,19 @@ bundle agent destroy
8787
commands:
8888
"chattr -i $(global.testfile)"
8989
contain => in_shell,
90-
handle => "is mutable",
90+
handle => "is mutable 1",
91+
if => fileexists("$(global.testfile)");
92+
"chattr -i $(global.testfile).gz"
93+
contain => in_shell,
94+
handle => "is mutable 2",
9195
if => fileexists("$(global.testfile)");
9296

9397
files:
9498
"$(global.testfile)"
9599
delete => tidy,
96-
depends_on => { "is mutable" };
100+
depends_on => { "is mutable 1" };
97101
files:
98102
"$(global.testfile).gz"
99-
delete => tidy;
103+
delete => tidy,
104+
depends_on => { "is mutable 2" };
100105
}

0 commit comments

Comments
 (0)