kernel unit tests fail in armhf and arm64

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

Bug Description

This is caused by this change, that didn't take into account that we run tests in all the architectures:
https://github.com/snapcore/snapcraft/pull/1148/files

======================================================================
FAIL: test_build_verbose_with_kconfigfile (snapcraft.tests.plugins.test_kernel.KernelPluginTestCase)
snapcraft.tests.plugins.test_kernel.KernelPluginTestCase.test_build_verbose_with_kconfigfile
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''-1

pythonlogging:'': {{{
Generating driver initrd for kernel release: 4.4.2
initrd mime_type: temporary-directory/squashfs-root/usr/lib/ubuntu-core-generic-initrd/initrd.img-core application/gzip
}}}

Traceback (most recent call last):
  File "/tmp/autopkgtest.hRA5Ne/build.yqr/snapcraft/snapcraft/tests/plugins/test_kernel.py", line 429, in test_build_verbose_with_kconfigfile
    plugin.installdir, 'lib', 'firmware'))])
  File "/usr/lib/python3.5/unittest/mock.py", line 824, in assert_has_calls
    ) from cause
AssertionError: Calls not found.
Expected: [call(['make', '-j2', 'V=1', 'bzImage', 'modules']), call(['make', '-j2', 'V=1', 'CONFIG_PREFIX=/tmp/tmprjje0lnz/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmprjje0lnz/parts/test-part/install', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmprjje0lnz/parts/test-part/install/lib/firmware'])]
Actual: [call(['make', '-j2', 'V=1', 'bzImage', 'modules', 'dtbs']),
 call(['make', '-j2', 'V=1', 'CONFIG_PREFIX=/tmp/tmprjje0lnz/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmprjje0lnz/parts/test-part/install', 'dtbs_install', 'INSTALL_DTBS_PATH=/tmp/tmprjje0lnz/parts/test-part/install/dtbs', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmprjje0lnz/parts/test-part/install/lib/firmware'])]

======================================================================
FAIL: test_build_with_defconfig_and_kconfigs (snapcraft.tests.plugins.test_kernel.KernelPluginTestCase)
snapcraft.tests.plugins.test_kernel.KernelPluginTestCase.test_build_with_defconfig_and_kconfigs
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "/tmp/autopkgtest.hRA5Ne/build.yqr/snapcraft/snapcraft/tests/plugins/test_kernel.py", line 529, in test_build_with_defconfig_and_kconfigs
    plugin.installdir, 'lib', 'firmware'))])
  File "/usr/lib/python3.5/unittest/mock.py", line 824, in assert_has_calls
    ) from cause
AssertionError: Calls not found.
Expected: [call(['make', '-j1', 'defconfig']), call(['make', '-j2', 'bzImage', 'modules']), call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmpn3rrxo27/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmpn3rrxo27/parts/test-part/install', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmpn3rrxo27/parts/test-part/install/lib/firmware'])]
Actual: [call(['make', '-j1', 'defconfig']),
 call(['make', '-j2', 'bzImage', 'modules', 'dtbs']),
 call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmpn3rrxo27/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmpn3rrxo27/parts/test-part/install', 'dtbs_install', 'INSTALL_DTBS_PATH=/tmp/tmpn3rrxo27/parts/test-part/install/dtbs', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmpn3rrxo27/parts/test-part/install/lib/firmware'])]

======================================================================
FAIL: test_build_with_kconfigfile (snapcraft.tests.plugins.test_kernel.KernelPluginTestCase)
snapcraft.tests.plugins.test_kernel.KernelPluginTestCase.test_build_with_kconfigfile
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "/tmp/autopkgtest.hRA5Ne/build.yqr/snapcraft/snapcraft/tests/plugins/test_kernel.py", line 373, in test_build_with_kconfigfile
    plugin.installdir, 'lib', 'firmware'))])
  File "/usr/lib/python3.5/unittest/mock.py", line 824, in assert_has_calls
    ) from cause
AssertionError: Calls not found.
Expected: [call(['make', '-j2', 'bzImage', 'modules']), call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmp_jkrmyjn/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmp_jkrmyjn/parts/test-part/install', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmp_jkrmyjn/parts/test-part/install/lib/firmware'])]
Actual: [call(['make', '-j2', 'bzImage', 'modules', 'dtbs']),
 call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmp_jkrmyjn/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmp_jkrmyjn/parts/test-part/install', 'dtbs_install', 'INSTALL_DTBS_PATH=/tmp/tmp_jkrmyjn/parts/test-part/install/dtbs', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmp_jkrmyjn/parts/test-part/install/lib/firmware'])]

======================================================================
FAIL: test_build_with_kconfigfile_and_firmware (snapcraft.tests.plugins.test_kernel.KernelPluginTestCase)
snapcraft.tests.plugins.test_kernel.KernelPluginTestCase.test_build_with_kconfigfile_and_firmware
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "/tmp/autopkgtest.hRA5Ne/build.yqr/snapcraft/snapcraft/tests/plugins/test_kernel.py", line 745, in test_build_with_kconfigfile_and_firmware
    plugin.installdir, 'lib', 'firmware'))])
  File "/usr/lib/python3.5/unittest/mock.py", line 824, in assert_has_calls
    ) from cause
AssertionError: Calls not found.
Expected: [call(['make', '-j2', 'bzImage', 'modules']), call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmpsx894c7e/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmpsx894c7e/parts/test-part/install', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmpsx894c7e/parts/test-part/install/lib/firmware'])]
Actual: [call(['make', '-j2', 'bzImage', 'modules', 'dtbs']),
 call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmpsx894c7e/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmpsx894c7e/parts/test-part/install', 'dtbs_install', 'INSTALL_DTBS_PATH=/tmp/tmpsx894c7e/parts/test-part/install/dtbs', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmpsx894c7e/parts/test-part/install/lib/firmware'])]

======================================================================
FAIL: test_build_with_kconfigfile_and_kconfigs (snapcraft.tests.plugins.test_kernel.KernelPluginTestCase)
snapcraft.tests.plugins.test_kernel.KernelPluginTestCase.test_build_with_kconfigfile_and_kconfigs
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "/tmp/autopkgtest.hRA5Ne/build.yqr/snapcraft/snapcraft/tests/plugins/test_kernel.py", line 471, in test_build_with_kconfigfile_and_kconfigs
    plugin.installdir, 'lib', 'firmware'))])
  File "/usr/lib/python3.5/unittest/mock.py", line 824, in assert_has_calls
    ) from cause
AssertionError: Calls not found.
Expected: [call(['make', '-j2', 'bzImage', 'modules']), call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmpg1eqcunb/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmpg1eqcunb/parts/test-part/install', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmpg1eqcunb/parts/test-part/install/lib/firmware'])]
Actual: [call(['make', '-j2', 'bzImage', 'modules', 'dtbs']),
 call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmpg1eqcunb/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmpg1eqcunb/parts/test-part/install', 'dtbs_install', 'INSTALL_DTBS_PATH=/tmp/tmpg1eqcunb/parts/test-part/install/dtbs', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmpg1eqcunb/parts/test-part/install/lib/firmware'])]

======================================================================
FAIL: test_build_with_kconfigfile_and_modules (snapcraft.tests.plugins.test_kernel.KernelPluginTestCase)
snapcraft.tests.plugins.test_kernel.KernelPluginTestCase.test_build_with_kconfigfile_and_modules
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "/tmp/autopkgtest.hRA5Ne/build.yqr/snapcraft/snapcraft/tests/plugins/test_kernel.py", line 690, in test_build_with_kconfigfile_and_modules
    plugin.installdir, 'lib', 'firmware'))])
  File "/usr/lib/python3.5/unittest/mock.py", line 824, in assert_has_calls
    ) from cause
AssertionError: Calls not found.
Expected: [call(['make', '-j2', 'bzImage', 'modules']), call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmpbsopnisr/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmpbsopnisr/parts/test-part/install', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmpbsopnisr/parts/test-part/install/lib/firmware'])]
Actual: [call(['make', '-j2', 'bzImage', 'modules', 'dtbs']),
 call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmpbsopnisr/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmpbsopnisr/parts/test-part/install', 'dtbs_install', 'INSTALL_DTBS_PATH=/tmp/tmpbsopnisr/parts/test-part/install/dtbs', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmpbsopnisr/parts/test-part/install/lib/firmware'])]

======================================================================
FAIL: test_build_with_kconfigfile_and_no_firmware (snapcraft.tests.plugins.test_kernel.KernelPluginTestCase)
snapcraft.tests.plugins.test_kernel.KernelPluginTestCase.test_build_with_kconfigfile_and_no_firmware
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "/tmp/autopkgtest.hRA5Ne/build.yqr/snapcraft/snapcraft/tests/plugins/test_kernel.py", line 783, in test_build_with_kconfigfile_and_no_firmware
    'INSTALL_MOD_PATH={}'.format(plugin.installdir)]),
  File "/usr/lib/python3.5/unittest/mock.py", line 824, in assert_has_calls
    ) from cause
AssertionError: Calls not found.
Expected: [call(['make', '-j2', 'bzImage', 'modules']), call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmpvibvxboz/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmpvibvxboz/parts/test-part/install'])]
Actual: [call(['make', '-j2', 'bzImage', 'modules', 'dtbs']),
 call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmpvibvxboz/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmpvibvxboz/parts/test-part/install', 'dtbs_install', 'INSTALL_DTBS_PATH=/tmp/tmpvibvxboz/parts/test-part/install/dtbs'])]

======================================================================
FAIL: test_build_with_two_defconfigs (snapcraft.tests.plugins.test_kernel.KernelPluginTestCase)
snapcraft.tests.plugins.test_kernel.KernelPluginTestCase.test_build_with_two_defconfigs
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "/tmp/autopkgtest.hRA5Ne/build.yqr/snapcraft/snapcraft/tests/plugins/test_kernel.py", line 582, in test_build_with_two_defconfigs
    plugin.installdir, 'lib', 'firmware'))])
  File "/usr/lib/python3.5/unittest/mock.py", line 824, in assert_has_calls
    ) from cause
AssertionError: Calls not found.
Expected: [call(['make', '-j1', 'defconfig', 'defconfig2']), call(['make', '-j2', 'bzImage', 'modules']), call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmp26y0z7hv/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmp26y0z7hv/parts/test-part/install', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmp26y0z7hv/parts/test-part/install/lib/firmware'])]
Actual: [call(['make', '-j1', 'defconfig', 'defconfig2']),
 call(['make', '-j2', 'bzImage', 'modules', 'dtbs']),
 call(['make', '-j2', 'CONFIG_PREFIX=/tmp/tmp26y0z7hv/parts/test-part/install', 'modules_install', 'INSTALL_MOD_PATH=/tmp/tmp26y0z7hv/parts/test-part/install', 'dtbs_install', 'INSTALL_DTBS_PATH=/tmp/tmp26y0z7hv/parts/test-part/install/dtbs', 'firmware_install', 'INSTALL_FW_PATH=/tmp/tmp26y0z7hv/parts/test-part/install/lib/firmware'])]

Tags: plugin tests
Revision history for this message
Leo Arias (elopio) wrote :

Setting priority to critical because this will block landings to the archive.

Revision history for this message
Leo Arias (elopio) wrote :
Changed in snapcraft:
assignee: nobody → Leo Arias (elopio)
Changed in snapcraft:
status: Triaged → Fix Committed
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.