linaro_media_create testsuite fails on installed system

Bug #709518 reported by Loïc Minier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
Medium
Loïc Minier

Bug Description

Get a failure with:
python -m testtools.run linaro_media_create.tests.test_suite

Tests running...
tar: Suppression de « / » au début des noms des membres
======================================================================
FAIL: linaro_media_create.tests.test_media_create.TestInstallHWPack.test_install_hwpacks
----------------------------------------------------------------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/testtools/runtest.py", line 169, in _run_user
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 499, in _run_test_method
    return self._get_test_method()()
  File "/usr/lib/pymodules/python2.7/linaro_media_create/tests/test_media_create.py", line 1067, in test_install_hwpacks
    fixture.mock.calls)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 268, in assertEqual
    self.assertThat(observed, matcher)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 345, in assertThat
    % (matchee, matcher, mismatch.describe()))
AssertionError: Match failed. Matchee: "[['sudo', 'mv', '-f', 'chroot/etc/resolv.conf', '/tmp/dir/resolv.conf'], ['sudo', 'cp', '/etc/resolv.conf', 'chroot/etc'], ['sudo', 'mv', '-f', 'chroot/etc/hosts', '/tmp/dir/hosts'], ['sudo', 'cp', '/etc/hosts', 'chroot/etc'], ['sudo', 'cp', '/usr/bin/qemu-arm-static', 'chroot/usr/bin'], ['sudo', 'cp', '/usr/bin/linaro-hwpack-install', 'chroot/usr/bin'], ['sudo', 'mount', 'proc', 'chroot/proc', '-t', 'proc'], ['sudo', 'cp', 'hwpack1.tgz', 'chroot'], ['sudo', 'chroot', 'chroot', 'linaro-hwpack-install', '--force-yes', '/hwpack1.tgz'], ['sudo', 'cp', 'hwpack2.tgz', 'chroot'], ['sudo', 'chroot', 'chroot', 'linaro-hwpack-install', '--force-yes', '/hwpack2.tgz'], ['sudo', 'rm', '-f', 'chroot/hwpack2.tgz'], ['sudo', 'rm', '-f', 'chroot/hwpack1.tgz'], ['sudo', 'umount', '-v', 'chroot/proc'], ['sudo', 'rm', '-f', 'chroot/usr/bin/linaro-hwpack-install'], ['sudo', 'rm', '-f', 'chroot/usr/bin/qemu-arm-static'], ['sudo', 'mv', '-f', '/tmp/dir/hosts', 'chroot/etc'], ['sudo', 'mv', '-f', '/tmp/dir/resolv.conf', 'chroot/etc']]"
Matcher: Equals([['sudo', 'mv', '-f', 'chroot/etc/resolv.conf', '/tmp/dir/resolv.conf'], ['sudo', 'cp', '/etc/resolv.conf', 'chroot/etc'], ['sudo', 'mv', '-f', 'chroot/etc/hosts', '/tmp/dir/hosts'], ['sudo', 'cp', '/etc/hosts', 'chroot/etc'], ['sudo', 'cp', '/usr/bin/qemu-arm-static', 'chroot/usr/bin'], ['sudo', 'cp', 'linaro_media_create/../linaro-hwpack-install', 'chroot/usr/bin'], ['sudo', 'mount', 'proc', 'chroot/proc', '-t', 'proc'], ['sudo', 'cp', 'hwpack1.tgz', 'chroot'], ['sudo', 'chroot', 'chroot', 'linaro-hwpack-install', '--force-yes', '/hwpack1.tgz'], ['sudo', 'cp', 'hwpack2.tgz', 'chroot'], ['sudo', 'chroot', 'chroot', 'linaro-hwpack-install', '--force-yes', '/hwpack2.tgz'], ['sudo', 'rm', '-f', 'chroot/hwpack2.tgz'], ['sudo', 'rm', '-f', 'chroot/hwpack1.tgz'], ['sudo', 'umount', '-v', 'chroot/proc'], ['sudo', 'rm', '-f', 'chroot/usr/bin/linaro-hwpack-install'], ['sudo', 'rm', '-f', 'chroot/usr/bin/qemu-arm-static'], ['sudo', 'mv', '-f', '/tmp/dir/hosts', 'chroot/etc'], ['sudo', 'mv', '-f', '/tmp/dir/resolv.conf', 'chroot/etc']])
Difference: !=:
reference = [['sudo', 'mv', '-f', 'chroot/etc/resolv.conf', '/tmp/dir/resolv.conf'],
 ['sudo', 'cp', '/etc/resolv.conf', 'chroot/etc'],
 ['sudo', 'mv', '-f', 'chroot/etc/hosts', '/tmp/dir/hosts'],
 ['sudo', 'cp', '/etc/hosts', 'chroot/etc'],
 ['sudo', 'cp', '/usr/bin/qemu-arm-static', 'chroot/usr/bin'],
 ['sudo',
  'cp',
  'linaro_media_create/../linaro-hwpack-install',
  'chroot/usr/bin'],
 ['sudo', 'mount', 'proc', 'chroot/proc', '-t', 'proc'],
 ['sudo', 'cp', 'hwpack1.tgz', 'chroot'],
 ['sudo',
  'chroot',
  'chroot',
  'linaro-hwpack-install',
  '--force-yes',
  '/hwpack1.tgz'],
 ['sudo', 'cp', 'hwpack2.tgz', 'chroot'],
 ['sudo',
  'chroot',
  'chroot',
  'linaro-hwpack-install',
  '--force-yes',
  '/hwpack2.tgz'],
 ['sudo', 'rm', '-f', 'chroot/hwpack2.tgz'],
 ['sudo', 'rm', '-f', 'chroot/hwpack1.tgz'],
 ['sudo', 'umount', '-v', 'chroot/proc'],
 ['sudo', 'rm', '-f', 'chroot/usr/bin/linaro-hwpack-install'],
 ['sudo', 'rm', '-f', 'chroot/usr/bin/qemu-arm-static'],
 ['sudo', 'mv', '-f', '/tmp/dir/hosts', 'chroot/etc'],
 ['sudo', 'mv', '-f', '/tmp/dir/resolv.conf', 'chroot/etc']]
actual = [['sudo', 'mv', '-f', 'chroot/etc/resolv.conf', '/tmp/dir/resolv.conf'],
 ['sudo', 'cp', '/etc/resolv.conf', 'chroot/etc'],
 ['sudo', 'mv', '-f', 'chroot/etc/hosts', '/tmp/dir/hosts'],
 ['sudo', 'cp', '/etc/hosts', 'chroot/etc'],
 ['sudo', 'cp', '/usr/bin/qemu-arm-static', 'chroot/usr/bin'],
 ['sudo', 'cp', '/usr/bin/linaro-hwpack-install', 'chroot/usr/bin'],
 ['sudo', 'mount', 'proc', 'chroot/proc', '-t', 'proc'],
 ['sudo', 'cp', 'hwpack1.tgz', 'chroot'],
 ['sudo',
  'chroot',
  'chroot',
  'linaro-hwpack-install',
  '--force-yes',
  '/hwpack1.tgz'],
 ['sudo', 'cp', 'hwpack2.tgz', 'chroot'],
 ['sudo',
  'chroot',
  'chroot',
  'linaro-hwpack-install',
  '--force-yes',
  '/hwpack2.tgz'],
 ['sudo', 'rm', '-f', 'chroot/hwpack2.tgz'],
 ['sudo', 'rm', '-f', 'chroot/hwpack1.tgz'],
 ['sudo', 'umount', '-v', 'chroot/proc'],
 ['sudo', 'rm', '-f', 'chroot/usr/bin/linaro-hwpack-install'],
 ['sudo', 'rm', '-f', 'chroot/usr/bin/qemu-arm-static'],
 ['sudo', 'mv', '-f', '/tmp/dir/hosts', 'chroot/etc'],
 ['sudo', 'mv', '-f', '/tmp/dir/resolv.conf', 'chroot/etc']]

------------
Ran 72 tests in 1.328s

FAILED (failures=1)

Bye

Related branches

Revision history for this message
Loïc Minier (lool) wrote :
Download full text (3.6 KiB)

python -m testtools.run hwpack.tests.test_suite
Tests running...
======================================================================
FAIL: hwpack.tests.test_script.ScriptTests.test_builds_a_hwpack
----------------------------------------------------------------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/testtools/runtest.py", line 169, in _run_user
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 459, in _run_setup
    ret = self.setUp()
  File "/usr/lib/pymodules/python2.7/hwpack/tests/test_script.py", line 41, in setUp
    self.script_path = self.find_script()
  File "/usr/lib/pymodules/python2.7/hwpack/tests/test_script.py", line 59, in find_script
    "Could not find linaro-hwpack-create script to test.")
AssertionError: Could not find linaro-hwpack-create script to test.
------------
======================================================================
FAIL: hwpack.tests.test_script.ScriptTests.test_errors_on_missing_configfile
----------------------------------------------------------------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/testtools/runtest.py", line 169, in _run_user
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 459, in _run_setup
    ret = self.setUp()
  File "/usr/lib/pymodules/python2.7/hwpack/tests/test_script.py", line 41, in setUp
    self.script_path = self.find_script()
  File "/usr/lib/pymodules/python2.7/hwpack/tests/test_script.py", line 59, in find_script
    "Could not find linaro-hwpack-create script to test.")
AssertionError: Could not find linaro-hwpack-create script to test.
------------
======================================================================
FAIL: hwpack.tests.test_script.ScriptTests.test_errors_on_missing_configfile_argument
----------------------------------------------------------------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/testtools/runtest.py", line 169, in _run_user
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 459, in _run_setup
    ret = self.setUp()
  File "/usr/lib/pymodules/python2.7/hwpack/tests/test_script.py", line 41, in setUp
    self.script_path = self.find_script()
  File "/usr/lib/pymodules/python2.7/hwpack/tests/test_script.py", line 59, in find_script
    "Could not find linaro-hwpack-create script to test.")
AssertionError: Could not find linaro-hwpack-create script to test.
------------
======================================================================
FAIL: hwpack.tests.test_script.ScriptTests.test_errors_on_missing_version_argument
----------------------------------------------------------------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/testtools/runtest.py", line 169, in _run_user
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 459, ...

Read more...

James Westby (james-w)
Changed in linaro-image-tools:
status: New → Triaged
importance: Undecided → Medium
Loïc Minier (lool)
summary: - Testsuite fails on installed system
+ linaro_media_create testsuite fails on installed system
Loïc Minier (lool)
Changed in linaro-image-tools:
status: Triaged → Fix Committed
assignee: nobody → Loïc Minier (lool)
milestone: none → 0.4.4
Mattias Backman (mabac)
Changed in linaro-image-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers