From ee5d15231b8ee49e9b8f5fca429e9375b072e268 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 1 Oct 2025 19:40:10 +0000 Subject: [PATCH] Test overlay-non-existent-destination in CI Move te overlay-non-existent-destination test to be part of the various exit_test tests so it can be ran in CI. Co-authored-by: sjoerdsimons <22603932+sjoerdsimons@users.noreply.github.com> --- tests/exit_test/exit_test.sh | 2 ++ .../overlay-non-existent-destination.yaml | 9 +++++++++ .../overlay-non-existent-destination.yaml | 17 ----------------- 3 files changed, 11 insertions(+), 17 deletions(-) create mode 100644 tests/exit_test/overlay-non-existent-destination.yaml delete mode 100644 tests/overlay-non-existent-destination/overlay-non-existent-destination.yaml diff --git a/tests/exit_test/exit_test.sh b/tests/exit_test/exit_test.sh index dc6c74a..7b3c1e8 100755 --- a/tests/exit_test/exit_test.sh +++ b/tests/exit_test/exit_test.sh @@ -67,6 +67,7 @@ expect_success debos good.yaml expect_failure debos bad.yaml expect_failure debos pre-machine-failure.yaml expect_failure debos post-machine-failure.yaml +expect_failure debos overlay-non-existent-destination.yaml expect_failure rename_command NOT_DEBOS debos good.yaml expect_failure $SUDO debos non-existent-file.yaml --disable-fakemachine @@ -77,6 +78,7 @@ expect_success $SUDO debos good.yaml --disable-fakemachine expect_failure $SUDO debos bad.yaml --disable-fakemachine expect_failure $SUDO debos pre-machine-failure.yaml --disable-fakemachine expect_failure $SUDO debos post-machine-failure.yaml --disable-fakemachine +expect_failure $SUDO debos overlay-non-existent-destination.yaml --disable-fakemachine echo if [[ $FAILURES -ne 0 ]]; then diff --git a/tests/exit_test/overlay-non-existent-destination.yaml b/tests/exit_test/overlay-non-existent-destination.yaml new file mode 100644 index 0000000..52812d1 --- /dev/null +++ b/tests/exit_test/overlay-non-existent-destination.yaml @@ -0,0 +1,9 @@ +architecture: amd64 + +actions: + # This overlay action is expected to error out 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 diff --git a/tests/overlay-non-existent-destination/overlay-non-existent-destination.yaml b/tests/overlay-non-existent-destination/overlay-non-existent-destination.yaml deleted file mode 100644 index 473a42d..0000000 --- a/tests/overlay-non-existent-destination/overlay-non-existent-destination.yaml +++ /dev/null @@ -1,17 +0,0 @@ -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