unittests are not passing in armhf

Bug #1643029 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
Leo Arias

Bug Description

There are 6 tests that assume they are not running in armhf.
The unittests should be agnostic, and run the same on all architectures.

======================================================================
FAIL: test_build_is_dirty_from_project (snapcraft.tests.test_pluginhandler.IsDirtyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched
    return func(*args, **keywargs)
  File "/tmp/autopkgtest.sdXxxA/build.Jjd/snapcraft/snapcraft/tests/test_pluginhandler.py", line 1530, in test_build_is_dirty_from_project
    'Expected build step to be dirty')
AssertionError: False is not true : Expected build step to be dirty

======================================================================
FAIL: test_pull_is_dirty_from_project (snapcraft.tests.test_pluginhandler.IsDirtyTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched
    return func(*args, **keywargs)
  File "/tmp/autopkgtest.sdXxxA/build.Jjd/snapcraft/snapcraft/tests/test_pluginhandler.py", line 1579, in test_pull_is_dirty_from_project
    'Expected pull step to be dirty')
AssertionError: False is not true : Expected pull step to be dirty

======================================================================
FAIL: test_push_a_snap (snapcraft.tests.test_commands_push.PushCommandTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.sdXxxA/build.Jjd/snapcraft/snapcraft/tests/test_commands_push.py", line 82, in test_push_a_snap
    self.fake_logger.output)
AssertionError: "Uploading my-snap-name_0.1_amd64.snap.\nRevision 9 of 'my-snap-name' created." not found in "Created snapcraft.yaml.\nEdit the file to your liking or run `snapcraft` to get started\nPreparing to pull my-part \nPulling my-part \nPreparing to build my-part \nBuilding my-part \nStaging my-part \nPriming my-part \nSnapped my-snap-name_0.1_armhf.snap\nUploading my-snap-name_0.1_armhf.snap.\nRevision 9 of 'my-snap-name' created.\n"

======================================================================
FAIL: test_push_and_release_a_snap (snapcraft.tests.test_commands_push.PushCommandTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.sdXxxA/build.Jjd/snapcraft/snapcraft/tests/test_commands_push.py", line 196, in test_push_and_release_a_snap
    self.fake_logger.output)
AssertionError: "Uploading my-snap-name_0.1_amd64.snap.\nRevision 9 of 'my-snap-name' created." not found in "Created snapcraft.yaml.\nEdit the file to your liking or run `snapcraft` to get started\nPreparing to pull my-part \nPulling my-part \nPreparing to build my-part \nBuilding my-part \nStaging my-part \nPriming my-part \nSnapped my-snap-name_0.1_armhf.snap\nUploading my-snap-name_0.1_armhf.snap.\nRevision 9 of 'my-snap-name' created.\nThe 'beta' channel is now open.\n"

======================================================================
FAIL: test_push_and_release_a_snap_to_N_channels (snapcraft.tests.test_commands_push.PushCommandTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.sdXxxA/build.Jjd/snapcraft/snapcraft/tests/test_commands_push.py", line 245, in test_push_and_release_a_snap_to_N_channels
    self.fake_logger.output)
AssertionError: "Uploading my-snap-name_0.1_amd64.snap.\nRevision 9 of 'my-snap-name' created." not found in "Created snapcraft.yaml.\nEdit the file to your liking or run `snapcraft` to get started\nPreparing to pull my-part \nPulling my-part \nPreparing to build my-part \nBuilding my-part \nStaging my-part \nPriming my-part \nSnapped my-snap-name_0.1_armhf.snap\nUploading my-snap-name_0.1_armhf.snap.\nRevision 9 of 'my-snap-name' created.\nThe 'beta,edge,candidate' channel is now open.\n"

======================================================================
FAIL: test_upload_raises_deprecation_warning (snapcraft.tests.test_commands_push.PushCommandTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.sdXxxA/build.Jjd/snapcraft/snapcraft/tests/test_commands_push.py", line 150, in test_upload_raises_deprecation_warning
    self.fake_logger.output)
AssertionError: "Uploading my-snap-name_0.1_amd64.snap.\nRevision 9 of 'my-snap-name' created." not found in "Created snapcraft.yaml.\nEdit the file to your liking or run `snapcraft` to get started\nPreparing to pull my-part \nPulling my-part \nPreparing to build my-part \nBuilding my-part \nStaging my-part \nPriming my-part \nSnapped my-snap-name_0.1_armhf.snap\nDEPRECATED: Use `push` instead of `upload`\nUploading my-snap-name_0.1_armhf.snap.\nRevision 9 of 'my-snap-name' created.\n"

----------------------------------------------------------------------

Tags: tests
Revision history for this message
Leo Arias (elopio) wrote :
Revision history for this message
Leo Arias (elopio) wrote :
Changed in snapcraft:
milestone: none → 2.24
status: In Progress → Fix Committed
Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.