For this one, I had to add back in the patch to version.Current.Arch as the func locallyBuildableTools uses version.Current to determine what can be build locally. So, what's happening in the above failure is that we're listing a trusty tool for ppc which of course also has the "trusty" series.
Added the patch of s.PatchValue(&arch.HostArch, func() string { return arch.AMD64 }). I left the patch of version.Current.Arch, as we've seen some cases where it's still needed. I don't have a ppc env to run tests on to verify, so I erred on the side of caution.
Other failures: TestFindAvailab leToolsAutoUplo ad
1) FAIL: tools_test.go:226: toolsSuite.
[LOG] 0:00.023 INFO juju.environs. bootstrap looking for bootstrap tools: version=<nil> tools.Version. Series, gc.Not(gc.Equals), "trusty")
tools_test.go:249:
c.Assert(
... obtained string = "trusty"
... expected string = "trusty"
For this one, I had to add back in the patch to version. Current. Arch as the func locallyBuildabl eTools uses version.Current to determine what can be build locally. So, what's happening in the above failure is that we're listing a trusty tool for ppc which of course also has the "trusty" series.
2) bootstrap_ test.go: 355: errorString{ s:"no matching tools available"} ("no matching tools available")
c.Assert(err, jc.ErrorIsNil)
... value *errors.errorString = &errors.
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- test.go: 327: bootstrapSuite. TestBootstrapSp ecificVersion
FAIL: bootstrap_
Added the patch of s.PatchValue( &arch.HostArch, func() string { return arch.AMD64 }). I left the patch of version. Current. Arch, as we've seen some cases where it's still needed. I don't have a ppc env to run tests on to verify, so I erred on the side of caution.