Add test to overlay into a non-existent destination

Attempt to overlay a file into a directory in the filesystem which doesn't
exist. The expected behavior is to cause an error.

This test is currently a manual test case and is not hooked into the CI.

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
This commit is contained in:
Christopher Obbard
2023-07-05 12:02:08 +01:00
committed by Sjoerd Simons
parent 44118fe78d
commit d08d5d1cfb

View File

@@ -0,0 +1,17 @@
architecture: amd64
actions:
# This overlay action is expected to error out here because the destination
# doesn't exist in the filesystem.
- action: overlay
description: Overlay file into a non-existent destination
source: overlay-non-existent-destination.yaml
destination: /this/path/does/not/exist/overlay-non-existent-destination.yaml
- action: run
description: Check if path exists
command: "[ -e /this/path/does/not/exist/overlay-non-existent-destination.yaml ] || exit 1"
- action: run
postprocess: true
command: echo Test