Skip to content

Commit

Permalink
Merge pull request #722 from pablochacin/fix-blkdev-test
Browse files Browse the repository at this point in the history
Fix: block device test fails searching for loop dev
  • Loading branch information
MalloZup authored Mar 27, 2020
2 parents 5136098 + f8f4cfa commit 8cbe9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvirt/resource_libvirt_domain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,7 @@ func createTempBlockDev(devname string) (string, string, error) {
}

// Find an available loop device
cmd = exec.Command("/sbin/losetup", "--find")
cmd = exec.Command("sudo", "/sbin/losetup", "--find")
loopdevStr, err := cmd.Output()
fmt.Printf("Executing command: %s\n", strings.Join(cmd.Args, " "))
if err != nil {
Expand Down

0 comments on commit 8cbe9ad

Please sign in to comment.