mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-21 23:41:41 -04:00
fix tests
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user