fix tests
This commit is contained in:
parent
45030e1919
commit
0f445dff07
|
@ -1,10 +1,12 @@
|
||||||
package ansiblelocal
|
package ansiblelocal
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/mitchellh/packer/packer"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/mitchellh/packer/packer"
|
||||||
)
|
)
|
||||||
|
|
||||||
func testConfig() map[string]interface{} {
|
func testConfig() map[string]interface{} {
|
||||||
|
@ -36,7 +38,7 @@ func TestProvisionerPrepare_Defaults(t *testing.T) {
|
||||||
t.Fatalf("err: %s", err)
|
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",
|
t.Fatalf("unexpected staging dir %s, expected %s",
|
||||||
p.config.StagingDir, DefaultStagingDir)
|
p.config.StagingDir, DefaultStagingDir)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue