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
77bd0240
Commit
77bd0240
authored
Sep 04, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/*: fix flaky tests, get tests passing
parent
5f5e9471
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
builder/amazon/common/artifact.go
builder/amazon/common/artifact.go
+2
-1
builder/virtualbox/iso/builder_test.go
builder/virtualbox/iso/builder_test.go
+1
-1
No files found.
builder/amazon/common/artifact.go
View file @
77bd0240
...
@@ -37,6 +37,7 @@ func (a *Artifact) Id() string {
...
@@ -37,6 +37,7 @@ func (a *Artifact) Id() string {
parts
=
append
(
parts
,
fmt
.
Sprintf
(
"%s:%s"
,
region
,
amiId
))
parts
=
append
(
parts
,
fmt
.
Sprintf
(
"%s:%s"
,
region
,
amiId
))
}
}
sort
.
Strings
(
parts
)
return
strings
.
Join
(
parts
,
","
)
return
strings
.
Join
(
parts
,
","
)
}
}
...
@@ -47,7 +48,7 @@ func (a *Artifact) String() string {
...
@@ -47,7 +48,7 @@ func (a *Artifact) String() string {
amiStrings
=
append
(
amiStrings
,
single
)
amiStrings
=
append
(
amiStrings
,
single
)
}
}
sort
.
S
ort
(
sort
.
StringSlice
(
amiStrings
)
)
sort
.
S
trings
(
amiStrings
)
return
fmt
.
Sprintf
(
"AMIs were created:
\n\n
%s"
,
strings
.
Join
(
amiStrings
,
"
\n
"
))
return
fmt
.
Sprintf
(
"AMIs were created:
\n\n
%s"
,
strings
.
Join
(
amiStrings
,
"
\n
"
))
}
}
...
...
builder/virtualbox/iso/builder_test.go
View file @
77bd0240
...
@@ -46,7 +46,7 @@ func TestBuilderPrepare_Defaults(t *testing.T) {
...
@@ -46,7 +46,7 @@ func TestBuilderPrepare_Defaults(t *testing.T) {
t
.
Errorf
(
"bad guest OS type: %s"
,
b
.
config
.
GuestOSType
)
t
.
Errorf
(
"bad guest OS type: %s"
,
b
.
config
.
GuestOSType
)
}
}
if
b
.
config
.
VMName
!=
"packer-foo
"
{
if
b
.
config
.
VMName
==
"
"
{
t
.
Errorf
(
"bad vm name: %s"
,
b
.
config
.
VMName
)
t
.
Errorf
(
"bad vm name: %s"
,
b
.
config
.
VMName
)
}
}
...
...
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