builder/parallels: Fixed unit test [GH-1115]

This commit is contained in:
Mikhail Zholobov 2014-05-03 14:49:07 +04:00
parent dbe40b9f55
commit 57e8f8e15b
1 changed files with 5 additions and 2 deletions

View File

@ -48,16 +48,19 @@ func TestStepRemoveDevices_attachedIso(t *testing.T) {
t.Fatal("should NOT have error")
}
// Test that ISO was removed
// Test that ISO was detached
if len(driver.PrlctlCalls) != 1 {
t.Fatalf("bad: %#v", driver.PrlctlCalls)
}
if driver.PrlctlCalls[0][2] != "--device-del" {
if driver.PrlctlCalls[0][2] != "--device-set" {
t.Fatalf("bad: %#v", driver.PrlctlCalls)
}
if driver.PrlctlCalls[0][3] != "cdrom0" {
t.Fatalf("bad: %#v", driver.PrlctlCalls)
}
if driver.PrlctlCalls[0][5] != "Default CD/DVD-ROM" {
t.Fatalf("bad: %#v", driver.PrlctlCalls)
}
}
func TestStepRemoveDevices_floppyPath(t *testing.T) {