test_cleanbuild unit test fails when executed in a platform that's not amd64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Leo Arias | ||
snapcraft (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The unittest has the expected architecture value hardcoded to amd64, so when it is run in a different architecture it will fail.
FAIL: test_cleanbuild (snapcraft.
-------
Traceback (most recent call last):
File "/usr/lib/
return func(*args, **keywargs)
File "/tmp/autopkgte
call(['lxc', 'remote', 'remove', 'my-pet'])])
File "/usr/lib/
) from cause
AssertionError: Calls not found.
Expected: [call(['lxc', 'remote', 'add', 'my-pet', 'https:/
Actual: [call(['lxc', 'remote', 'add', 'my-pet', 'https:/
call(['lxc', 'launch', 'my-pet:
call(['lxc', 'file', 'push', 'project.tar', 'snapcraft-
call(['lxc', 'exec', 'snapcraft-my-pet', '--', 'tar', 'xvf', '/root/
call(['lxc', 'exec', 'snapcraft-my-pet', '--', 'python3', '-c', 'import urllib.request; urllib.
call(['lxc', 'exec', 'snapcraft-my-pet', '--', 'apt-get', 'update']),
call(['lxc', 'exec', 'snapcraft-my-pet', '--', 'apt-get', 'install', 'snapcraft', '-y']),
call(['lxc', 'exec', 'snapcraft-my-pet', '--', 'snapcraft', 'snap', '--output', 'snap.snap']),
call(['lxc', 'file', 'pull', 'snapcraft-
call(['lxc', 'stop', 'snapcraft-
[Impact]
* No visible impact for users.
* Fixing this test will get us closer to have green executions in autopkgtests in all the platforms.
[Test Case]
* Run the autopkgtests in a platform that's not amd64,
[Regression Potential]
* This could make fail the tests in amd64. But as it's in an autopkgtest, any regression will block the new version to get to proposed.
Changed in snapcraft: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Leo Arias (elopio) |
milestone: | none → 2.11 |
Changed in snapcraft: | |
milestone: | 2.12 → 2.11 |
status: | In Progress → Fix Committed |
Changed in snapcraft (Ubuntu Xenial): | |
milestone: | none → xenial-updates |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/ubuntu- core/snapcraft/ pull/552