fix tests

This commit is contained in:
Matthew Hooker 2017-02-03 15:03:19 -08:00
parent 45030e1919
commit 0f445dff07
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 4 additions and 2 deletions

View File

@ -1,10 +1,12 @@
package ansiblelocal
import (
"github.com/mitchellh/packer/packer"
"io/ioutil"
"os"
"strings"
"testing"
"github.com/mitchellh/packer/packer"
)
func testConfig() map[string]interface{} {
@ -36,7 +38,7 @@ func TestProvisionerPrepare_Defaults(t *testing.T) {
t.Fatalf("err: %s", err)
}
if p.config.StagingDir != DefaultStagingDir {
if !strings.HasPrefix(p.config.StagingDir, DefaultStagingDir) {
t.Fatalf("unexpected staging dir %s, expected %s",
p.config.StagingDir, DefaultStagingDir)
}