update tests
This commit is contained in:
parent
7c41244e15
commit
7f040dfed8
|
@ -36,6 +36,10 @@ func ConfigTmpDir() (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
td, err := ioutil.TempDir(configdir, "tmp")
|
td, err := ioutil.TempDir(configdir, "tmp")
|
||||||
|
if err != nil {
|
||||||
|
return "", fmt.Errorf("Error creating temp dir: %s", err)
|
||||||
|
|
||||||
|
}
|
||||||
log.Printf("Set Packer temp dir to %s", td)
|
log.Printf("Set Packer temp dir to %s", td)
|
||||||
return td, nil
|
return td, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ func testStepTempDir_impl(t *testing.T) string {
|
||||||
dir := dirRaw.(string)
|
dir := dirRaw.(string)
|
||||||
|
|
||||||
if _, err := os.Stat(dir); err != nil {
|
if _, err := os.Stat(dir); err != nil {
|
||||||
t.Fatalf("err: %s", err)
|
t.Fatalf("Stat for %s failed: err: %s", err, dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cleanup
|
// Cleanup
|
||||||
|
|
Loading…
Reference in New Issue