version: tests fail on arm64 14.04
Bug #1481133 reported by
Dave Cheney
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Medium
|
Unassigned |
Bug Description
FAIL: supportedseries
supportedseries
c.Assert(err, jc.ErrorIsNil)
... value *errors.Err = &errors.
/supportedserie
... error stack:
unknown version for series: "precise"
OOPS: 23 passed, 1 FAILED
--- FAIL: Test (0.34s)
FAIL
FAIL github.
How is this even possible???
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: armhf unit-tests |
tags: |
added: arm64 removed: armhf |
Changed in juju-core: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
This is caused by this helpful footgun
// updateDistroInfo updates seriesVersions from /usr/share/ distro- info/ubuntu. csv if possible.. distro- info/ubuntu. csv provided by distro-info-data package.
return nil
func updateDistroInfo() error {
// We need to find the series version eg 12.04 from the series eg precise. Use the information found in
// /usr/share/
f, err := os.Open(distroInfo)
if err != nil {
// On non-Ubuntu systems this file won't exist but that's expected.
}
defer f.Close()
bufRdr := bufio.NewReader(f)
If /usr/share/ distro- info/ubuntu. csv is missing, then we quietly pretend like there are NO UBUNTU SERIES EVER!!!