Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
57e8f8e1
Commit
57e8f8e1
authored
May 03, 2014
by
Mikhail Zholobov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/parallels: Fixed unit test [GH-1115]
parent
dbe40b9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
builder/parallels/common/step_remove_devices_test.go
builder/parallels/common/step_remove_devices_test.go
+5
-2
No files found.
builder/parallels/common/step_remove_devices_test.go
View file @
57e8f8e1
...
@@ -48,16 +48,19 @@ func TestStepRemoveDevices_attachedIso(t *testing.T) {
...
@@ -48,16 +48,19 @@ func TestStepRemoveDevices_attachedIso(t *testing.T) {
t
.
Fatal
(
"should NOT have error"
)
t
.
Fatal
(
"should NOT have error"
)
}
}
// Test that ISO was
remov
ed
// Test that ISO was
detach
ed
if
len
(
driver
.
PrlctlCalls
)
!=
1
{
if
len
(
driver
.
PrlctlCalls
)
!=
1
{
t
.
Fatalf
(
"bad: %#v"
,
driver
.
PrlctlCalls
)
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
)
t
.
Fatalf
(
"bad: %#v"
,
driver
.
PrlctlCalls
)
}
}
if
driver
.
PrlctlCalls
[
0
][
3
]
!=
"cdrom0"
{
if
driver
.
PrlctlCalls
[
0
][
3
]
!=
"cdrom0"
{
t
.
Fatalf
(
"bad: %#v"
,
driver
.
PrlctlCalls
)
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
)
{
func
TestStepRemoveDevices_floppyPath
(
t
*
testing
.
T
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment