MCPcopy
hub / github.com/hashicorp/packer / cleanup

Function cleanup

command/build_test.go:1054–1073  ·  view source on GitHub ↗
(moreFiles ...string)

Source from the content-addressed store, hash-verified

1052}
1053
1054func cleanup(moreFiles ...string) {
1055 os.RemoveAll("chocolate.txt")
1056 os.RemoveAll("vanilla.txt")
1057 os.RemoveAll("cherry.txt")
1058 os.RemoveAll("apple.txt")
1059 os.RemoveAll("peach.txt")
1060 os.RemoveAll("banana.txt")
1061 os.RemoveAll("pear.txt")
1062 os.RemoveAll("tomato.txt")
1063 os.RemoveAll("unnamed.txt")
1064 os.RemoveAll("roses.txt")
1065 os.RemoveAll("fuchsias.txt")
1066 os.RemoveAll("lilas.txt")
1067 os.RemoveAll("campanules.txt")
1068 os.RemoveAll("ducky.txt")
1069 os.RemoveAll("banana.txt")
1070 for _, file := range moreFiles {
1071 os.RemoveAll(file)
1072 }
1073}
1074
1075func TestBuildCommand_ParseArgs(t *testing.T) {
1076 defaultMeta := TestMetaFile(t)

Callers 15

TestBuildSleepTimeoutFunction · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…