Remove tmp files created by builder/amazon/common tests
This commit is contained in:
parent
96adb4a9d1
commit
54e9690dff
|
@ -119,6 +119,7 @@ func TestRunConfigPrepare_UserData(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("err: %s", err)
|
t.Fatalf("err: %s", err)
|
||||||
}
|
}
|
||||||
|
defer os.Remove(tf.Name())
|
||||||
defer tf.Close()
|
defer tf.Close()
|
||||||
|
|
||||||
c.UserData = "foo"
|
c.UserData = "foo"
|
||||||
|
@ -143,6 +144,7 @@ func TestRunConfigPrepare_UserDataFile(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("err: %s", err)
|
t.Fatalf("err: %s", err)
|
||||||
}
|
}
|
||||||
|
defer os.Remove(tf.Name())
|
||||||
defer tf.Close()
|
defer tf.Close()
|
||||||
|
|
||||||
c.UserDataFile = tf.Name()
|
c.UserDataFile = tf.Name()
|
||||||
|
|
Loading…
Reference in New Issue