From 4fc56162f6287c7e0e3631ffa929cfb41f6aac4b Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sun, 28 Jun 2026 01:01:20 +0100 Subject: [PATCH] Harden hostagent SMART no-device test --- internal/hostagent/smartctl_coverage_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/hostagent/smartctl_coverage_test.go b/internal/hostagent/smartctl_coverage_test.go index f8cf4bb59..f4d24aad0 100644 --- a/internal/hostagent/smartctl_coverage_test.go +++ b/internal/hostagent/smartctl_coverage_test.go @@ -424,6 +424,8 @@ func TestDefaultRunCommandOutputRejectsOversizedOutput(t *testing.T) { } func TestCollectLocalNoDevices(t *testing.T) { + forceLinuxLSBLKFallback(t) + origRun := smartRunCommandOutput t.Cleanup(func() { smartRunCommandOutput = origRun })