Skip to content

Commit 98dc500

Browse files
committed
Add skip when we have no LED slots
Signed-off-by: Tony Asleson <[email protected]>
1 parent 577138c commit 98dc500

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/lsm_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,6 +1567,10 @@ func TestLocalDiskLedSlotsGetSet(t *testing.T) {
15671567
slots, err = handle.SlotsGet()
15681568
assert.Nil(t, err)
15691569

1570+
if len(slots) == 0 {
1571+
t.Skip("No local disks to test!")
1572+
}
1573+
15701574
for _, s := range slots {
15711575

15721576
if len(s.Device) > 0 {

0 commit comments

Comments
 (0)