test: assert the restic restore exit code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Tobias KaupatandClaude Sonnet 5.5 committed 2026-10-18 10:18:04 +02:00
1 parent 76975658a7
commit 6e06da89a3
1 file changed
+3
+3
View File
@@ -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"