Merge lp:~elopio/snappy/fix_tpl into lp:~snappy-dev/snappy/snappy-moved-to-github

Proposed by Leo Arias
Status: Merged
Approved by: Leo Arias
Approved revision: 572
Merged at revision: 573
Proposed branch: lp:~elopio/snappy/fix_tpl
Merge into: lp:~snappy-dev/snappy/snappy-moved-to-github
Diff against target: 26 lines (+3/-1)
1 file modified
_integration-tests/main.go (+3/-1)
To merge this branch: bzr merge lp:~elopio/snappy/fix_tpl
Reviewer Review Type Date Requested Status
Federico Gimenez (community) Approve
Snappy Developers Pending
Review via email: mp+264181@code.launchpad.net

Commit message

In the integration tests, delete and recreate the template output directory.

To post a comment you must log in.
Revision history for this message
Federico Gimenez (fgimenez) wrote :

Awesome thanks :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '_integration-tests/main.go'
--- _integration-tests/main.go 2015-07-08 16:14:10 +0000
+++ _integration-tests/main.go 2015-07-08 17:25:32 +0000
@@ -38,12 +38,13 @@
38 defaultChannel = "edge"38 defaultChannel = "edge"
39 defaultSSHPort = 2239 defaultSSHPort = 22
40 defaultGoArm = "7"40 defaultGoArm = "7"
41 controlFile = "_integration-tests/data/output/control"41 tplOutputDir = "_integration-tests/data/output/"
42 controlTpl = "_integration-tests/data/tpl/control"42 controlTpl = "_integration-tests/data/tpl/control"
43)43)
4444
45var (45var (
46 commonSSHOptions = []string{"---", "ssh"}46 commonSSHOptions = []string{"---", "ssh"}
47 controlFile = filepath.Join(tplOutputDir, "control")
47 testPackagesLatest = []string{"latest", "failover"}48 testPackagesLatest = []string{"latest", "failover"}
48 testPackageUpdate = []string{"update"}49 testPackageUpdate = []string{"update"}
49 testPackages = append(testPackagesLatest, testPackageUpdate...)50 testPackages = append(testPackagesLatest, testPackageUpdate...)
@@ -191,6 +192,7 @@
191 log.Fatalf("Error reading adt-run control template %s", controlTpl)192 log.Fatalf("Error reading adt-run control template %s", controlTpl)
192 }193 }
193194
195 prepareTargetDir(tplOutputDir)
194 outputFile, err := os.Create(controlFile)196 outputFile, err := os.Create(controlFile)
195 if err != nil {197 if err != nil {
196 log.Fatalf("Error creating control file %s", controlFile)198 log.Fatalf("Error creating control file %s", controlFile)

Subscribers

People subscribed via source and target branches