From 855ea4c328457024f883f09e4897fbb00baabd43 Mon Sep 17 00:00:00 2001 From: Mateus Melchiades Date: Sat, 4 Nov 2023 13:45:22 +0000 Subject: [PATCH] Add lsblk command to lvm test --- core/lvm_test.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/lvm_test.go b/core/lvm_test.go index fd559ab7..83983569 100644 --- a/core/lvm_test.go +++ b/core/lvm_test.go @@ -30,7 +30,15 @@ func TestMain(m *testing.M) { } device = string(ret) device = device[:len(device)-1] - //Create device label and add some partitions + + // Test: Show all devices + out, err := exec.Command("lsblk", "-f").Output() + if err != nil { + panic("error listing block devices: " + err.Error()) + } + fmt.Println(string(out)) + + // Create device label and add some partitions albiusDevice, err := LocateDisk(device) if err != nil { panic("error finding loop device: " + err.Error())