test: F6 restore-point SSD label now clear (was blank)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017CDMFpFx84pfviCTVuGGhf
This commit is contained in:
2026-07-12 09:01:17 +02:00
parent 68b3a3932e
commit e3903be0f1
@@ -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)
}
})
}