Clear the env at the start of each integration test.

This commit is contained in:
John Barton (joho)
2013-07-31 12:57:44 +10:00
parent 9001b88250
commit 9b4bbb98c3
2 changed files with 34 additions and 2 deletions

View File

@ -42,8 +42,10 @@ func loadFile(filename string) (err error) {
}
for _, fullLine := range lines {
// fmt.Printf("Line: %v\n", fullLine)
if !isIgnoredLine(fullLine) {
key, value, err := parseLine(fullLine)
// fmt.Printf("Key: %v Value: %v\n", key, value)
if err == nil {
os.Setenv(key, value)