← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1589747] Re: test_cleanbuild unit test fails when executed in a platform that's not amd64

 

This bug was fixed in the package snapcraft - 2.11

---------------
snapcraft (2.11) xenial; urgency=medium

  [ Leo Arias ]
  * Make the lxd unit test pass in architectures other than amd64. (#552)
    (LP: #1589747)
  * Support running the snaps tests in multiple architectures (#554)
    (LP: #1589779)
  * Make the IsDirty unit test case pass in architectures other than
    amd64. (#553) (LP: #1589752)

  [ Didier Roche ]
  * Reenable get and set tourdir unit tests (#551) (LP: #1589782)
  * Add finale tour examples and tests (#558) (LP: #1590903)
  * Reenable tour command (#559) (LP: #1590906)

  [ Sergio Schvezov ]
  * Fix or address lintian errors and warnings (#561) (LP: #1588980)

 -- Sergio Schvezov <sergio.schvezov@xxxxxxxxxx>  Thu, 09 Jun 2016
18:46:22 -0300

** Changed in: snapcraft (Ubuntu Xenial)
       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 Committed
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