From 6e06da89a3a7b8443e94a7314c6a2b80127cdc85 Mon Sep 17 00:00:00 2001 From: Tobias Kaupat Date: Sun, 18 Oct 2026 10:18:04 +0200 Subject: [PATCH] test: assert the restic restore exit code Co-Authored-By: Claude Sonnet 5.5 --- test/compat.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/compat.sh b/test/compat.sh index 7f52c57..a70ee4a 100644 --- a/test/compat.sh +++ b/test/compat.sh @@ -52,6 +52,9 @@ assert_contains "$snapshots" '"testtag"' \ "snapshot carries the configured RESTIC_TAG" in_container restic restore latest --target /tmp/restore >/dev/null 2>&1 +restore_rc=$? +assert_eq "0" "$restore_rc" \ + "restic restore of the latest snapshot exits 0" restored="$(in_container cat /tmp/restore/data/hello.txt 2>&1)" assert_eq "backup me" "$restored" \ "restored file content matches the original"