tests depend on dpkg-architecture

Bug #1544340 reported by Sergio Schvezov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
Sergio Schvezov

Bug Description

======================================================================
ERROR: test_snap (test_snap.SnapTestCase)
test_snap.SnapTestCase.test_snap
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/tmp/adt-run.P9uO28/build.8Gs/snapcraft-2.2/integration_tests/test_snap.py", line 51, in test_snap
    snap_file_path = 'assemble_1.0_{}.snap'.format(_get_deb_arch())
  File "/tmp/adt-run.P9uO28/build.8Gs/snapcraft-2.2/integration_tests/test_snap.py", line 32, in _get_deb_arch
    return _run_dpkg_architecture('-qDEB_BUILD_ARCH')
  File "/tmp/adt-run.P9uO28/build.8Gs/snapcraft-2.2/integration_tests/test_snap.py", line 41, in _run_dpkg_architecture
    ['dpkg-architecture', arg], universal_newlines=True).strip()
  File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.5/subprocess.py", line 693, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1541, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'dpkg-architecture'

Changed in snapcraft:
milestone: none → 2.2.1
importance: Undecided → High
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
assignee: nobody → Sergio Schvezov (sergiusens)
status: New → In Progress
Kyle Fazzari (kyrofa)
Changed in snapcraft:
status: In Progress → 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.