We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 387d844 commit 17d4d59Copy full SHA for 17d4d59
test/dir-whiteout.bats
@@ -0,0 +1,42 @@
1
+load helpers
2
+
3
+function setup() {
4
+ stacker_setup
5
+}
6
7
+function teardown() {
8
+ cleanup
9
10
11
+@test "dir whiteouts work" {
12
+ cat > stacker.yaml <<EOF
13
+base:
14
+ from:
15
+ type: oci
16
+ url: $UBUNTU_OCI
17
+ run: |
18
+ mkdir /hello-base
19
+mid:
20
+ build_only: true
21
22
+ type: built
23
+ tag: base
24
25
+ mkdir /foo
26
+ touch /foo/bar
27
+top:
28
29
30
+ tag: mid
31
32
+ rm -f /foo/bar
33
+ rmdir /foo
34
+EOF
35
+ stacker build
36
37
+ umoci unpack --image oci:top top
38
+ ls top/rootfs
39
+ false
40
+ [ ! -f top/rootfs/foo/bar ]
41
+ [ ! -d top/rootfs/foo ]
42
0 commit comments