Skip to content

Commit

Permalink
Add lsblk command to lvm test
Browse files Browse the repository at this point in the history
  • Loading branch information
matbme committed Nov 4, 2023
1 parent f3b93f6 commit 855ea4c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/lvm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 855ea4c

Please sign in to comment.