Force test to be skipped unless PACKER_ACC set.
This commit is contained in:
parent
05d56034dd
commit
bf0ab6b722
|
@ -20,6 +20,10 @@ func TestBuilderAcc_basic(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestBuilderAcc_imageId(t *testing.T) {
|
||||
if os.Getenv("PACKER_ACC") == "" {
|
||||
t.Skip("Acceptance tests skipped unless env 'PACKER_ACC' set")
|
||||
}
|
||||
|
||||
builderT.Test(t, builderT.TestCase{
|
||||
PreCheck: func() { testAccPreCheck(t) },
|
||||
Builder: &Builder{},
|
||||
|
|
Loading…
Reference in New Issue