update tests

This commit is contained in:
Megan Marsh 2019-10-03 15:06:01 -07:00
parent 7c41244e15
commit 7f040dfed8
2 changed files with 5 additions and 1 deletions

View File

@ -36,6 +36,10 @@ func ConfigTmpDir() (string, error) {
}
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)
return td, nil
}

View File

@ -35,7 +35,7 @@ func testStepTempDir_impl(t *testing.T) string {
dir := dirRaw.(string)
if _, err := os.Stat(dir); err != nil {
t.Fatalf("err: %s", err)
t.Fatalf("Stat for %s failed: err: %s", err, dir)
}
// Cleanup