From a492ca7424fec29254bb4bcd2daf40afef5e363c Mon Sep 17 00:00:00 2001 From: John Bellone Date: Thu, 12 Jun 2014 16:45:37 -0400 Subject: [PATCH] Fix warnings about not utilizing test module. Make these tests green adn them figure out how to test the actual post-processor. --- post-processor/compress/post-processor.go | 7 +++---- post-processor/compress/post-processor_test.go | 5 +---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/post-processor/compress/post-processor.go b/post-processor/compress/post-processor.go index dc732a57a..2dc5e6d94 100644 --- a/post-processor/compress/post-processor.go +++ b/post-processor/compress/post-processor.go @@ -4,11 +4,10 @@ import ( "archive/tar" "compress/gzip" "fmt" - "io" - "os" - "github.com/mitchellh/packer/common" "github.com/mitchellh/packer/packer" + "io" + "os" ) type Config struct { @@ -36,7 +35,7 @@ func (self *PostProcessor) Configure(raws ...interface{}) error { self.config.tpl.UserVars = self.config.PackerUserVars templates := map[string]*string{ - "output_path": &self.config.OutputPath, + "output": &self.config.OutputPath, } errs := new(packer.MultiError) diff --git a/post-processor/compress/post-processor_test.go b/post-processor/compress/post-processor_test.go index d16cf68ae..92cbfc4b3 100644 --- a/post-processor/compress/post-processor_test.go +++ b/post-processor/compress/post-processor_test.go @@ -1,6 +1,3 @@ package compress -import ( - "github.com/mitchellh/packer/packer" - "testing" -) +import ()