blob: 6aa374b04a6b08c8fcc80886f313bcc67902fc8d [file] [log] [blame]
package main
import (
"testing"
"go.fuchsia.dev/fuchsia/tools/bootserver_old/tests"
)
func TestInitPartitionTables(t *testing.T) {
_, cleanup := bootserver.StartQemu(t, "netsvc.all-features=true, netsvc.netboot=true", "full")
defer cleanup()
logPattern := []bootserver.LogMatch{
{"Received request from ", true},
{"Proceeding with nodename ", true},
{"Transfer starts", true},
{"Transfer ends successfully", true},
{"Issued reboot command to", false},
}
bootserver.CmdSearchLog(
t, logPattern,
bootserver.ToolPath(t, "bootserver"), "-n", bootserver.DefaultNodename,
"--init-partition-tables", "/dev/class/block/000", "-1", "--fail-fast")
}