group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #04908
[Bug 1589747] Re: test_cleanbuild unit test fails when executed in a platform that's not amd64
** Changed in: snapcraft
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1589747
Title:
test_cleanbuild unit test fails when executed in a platform that's not
amd64
Status in Snapcraft:
Fix Released
Status in snapcraft package in Ubuntu:
New
Status in snapcraft source package in Xenial:
Fix Released
Status in snapcraft source package in Yakkety:
New
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.tests.test_lxd.LXDTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched
return func(*args, **keywargs)
File "/tmp/autopkgtest.v8hLiN/build.kH3/snapcraft-2.9/snapcraft/tests/test_lxd.py", line 76, in test_cleanbuild
call(['lxc', 'remote', 'remove', 'my-pet'])])
File "/usr/lib/python3.5/unittest/mock.py", line 824, in assert_has_calls
) from cause
AssertionError: Calls not found.
Expected: [call(['lxc', 'remote', 'add', 'my-pet', 'https://images.linuxcontainers.org:8443']), call(['lxc', 'launch', 'my-pet:ubuntu/xenial/amd64', 'snapcraft-my-pet']), call(['lxc', 'file', 'push', 'project.tar', 'snapcraft-my-pet//root/project.tar']), call(['lxc', 'exec', 'snapcraft-my-pet', '--', 'tar', 'xvf', '/root/project.tar']), call(['lxc', 'exec', 'snapcraft-my-pet', '--', 'python3', '-c', 'import urllib.request; urllib.request.urlopen("http://start.ubuntu.com/connectivity-check.html", timeout=5)']), 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-my-pet//root/snap.snap', 'snap.snap']), call(['lxc', 'stop', 'snapcraft-my-pet']), call(['lxc', 'remote', 'remove', 'my-pet'])]
Actual: [call(['lxc', 'remote', 'add', 'my-pet', 'https://images.linuxcontainers.org:8443']),
call(['lxc', 'launch', 'my-pet:ubuntu/xenial/i386', 'snapcraft-my-pet']),
call(['lxc', 'file', 'push', 'project.tar', 'snapcraft-my-pet//root/project.tar']),
call(['lxc', 'exec', 'snapcraft-my-pet', '--', 'tar', 'xvf', '/root/project.tar']),
call(['lxc', 'exec', 'snapcraft-my-pet', '--', 'python3', '-c', 'import urllib.request; urllib.request.urlopen("http://start.ubuntu.com/connectivity-check.html", timeout=5)']),
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-my-pet//root/snap.snap', 'snap.snap']),
call(['lxc', 'stop', 'snapcraft-my-pet']),
[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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/snapcraft/+bug/1589747/+subscriptions