From e3903be0f1dd4d80729cde040ecbdf7acf382ec1 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Sun, 12 Jul 2026 09:01:17 +0200 Subject: [PATCH] test: F6 restore-point SSD label now clear (was blank) Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_017CDMFpFx84pfviCTVuGGhf --- controller/internal/backup/restore_points_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/controller/internal/backup/restore_points_test.go b/controller/internal/backup/restore_points_test.go index f6e9ff0..9ca2300 100644 --- a/controller/internal/backup/restore_points_test.go +++ b/controller/internal/backup/restore_points_test.go @@ -98,7 +98,7 @@ func TestListRestorePoints_DriveLabel(t *testing.T) { } }) - t.Run("SSD fallback → empty label", func(t *testing.T) { + t.Run("SSD fallback → clear system-drive label (F6)", func(t *testing.T) { sys := filepath.Join(t.TempDir(), "sysdata") nsRoot := NamespaceRoot(sys, false) // system path appends felhom-data mustWrite(t, RecoveryUnitManifestPath(nsRoot, "app"), "{}") @@ -112,8 +112,9 @@ func TestListRestorePoints_DriveLabel(t *testing.T) { if !found || len(points) != 1 { t.Fatalf("points: %v found=%v", points, found) } - if points[0].DriveLabel != "" { - t.Errorf("SSD fallback drive_label = %q, want empty", points[0].DriveLabel) + // F6: a sys_drive app's restore point carries a clear label, never blank. + if points[0].DriveLabel != systemDriveLabel { + t.Errorf("SSD fallback drive_label = %q, want %q", points[0].DriveLabel, systemDriveLabel) } }) }