Fix compress crash

- Changed config from pointer to value to fix crash
- Removed acceptance flag from compress tests since they would have
caught this
This commit is contained in:
Chris Bednarski 2015-06-24 17:47:00 -07:00
parent f765d57009
commit 1831a09055
2 changed files with 1 additions and 7 deletions

View File

@ -35,7 +35,7 @@ type Config struct {
}
type PostProcessor struct {
config *Config
config Config
}
var (

View File

@ -9,7 +9,6 @@ import (
"testing"
"github.com/mitchellh/packer/builder/file"
env "github.com/mitchellh/packer/helper/builder/testing"
"github.com/mitchellh/packer/packer"
"github.com/mitchellh/packer/template"
)
@ -187,11 +186,6 @@ func setup(t *testing.T) (packer.Ui, packer.Artifact, error) {
}
func testArchive(t *testing.T, config string) packer.Artifact {
if os.Getenv(env.TestEnvVar) == "" {
t.Skip(fmt.Sprintf(
"Acceptance tests skipped unless env '%s' set", env.TestEnvVar))
}
ui, artifact, err := setup(t)
if err != nil {
t.Fatalf("Error bootstrapping test: %s", err)