← Back to team overview

kernel-packages team mailing list archive

[Bug 1510362] Re: [xenial] autopkgtest regression

 

I'm unable to reproduce this. I can say that a lot of tests fail due to
bug #1511439. If I use 'sudo aa-disable /etc/apparmor.d/usr.bin
.webbrowser-app' I can work around this.

$ sudo ./test-apparmor.py 
...
test_easyprof (__main__.ApparmorTest)
Test aa-easyprof ... ok
...
test_python (__main__.ApparmorBindings)
Test python binding ... 
  python
  python3
ok
...

If I remove python3-libapparmor (which also remove apparmor-easyprof), I see the same issue:
...

======================================================================
FAIL: test_easyprof (__main__.ApparmorTest)
Test aa-easyprof
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-apparmor.py", line 1190, in test_easyprof
    self.assertEquals(expected, rc, result + report)
AssertionError: Got exit code 127, expected 0
[Errno 2] No such file or directory

======================================================================
FAIL: test_python (__main__.ApparmorBindings)
Test python binding
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test-apparmor.py", line 2403, in test_python
    self.assertEquals(expected, rc, result + report)
AssertionError: Got exit code 1, expected 0
Traceback (most recent call last):
  File "/tmp/testlib707vau/test-script", line 20, in <module>
    import LibAppArmor
ImportError: No module named 'LibAppArmor'

It seems the kernel's team scripts aren't pulling in 'apparmor-
easyprof'.

$ sudo apt-get install apparmor-easyprof
...
$ sudo ./test-apparmor.py 
...
test_easyprof (__main__.ApparmorTest)
Test aa-easyprof ... ok
...
test_python (__main__.ApparmorBindings)
Test python binding ... 
  python
  python3
ok
...


** Changed in: linux (Ubuntu)
     Assignee: Jamie Strandboge (jdstrand) => (unassigned)

** Changed in: linux (Ubuntu)
       Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1510362

Title:
  [xenial] autopkgtest regression

Status in linux package in Ubuntu:
  Triaged

Bug description:
  On Xenial, linux' autopkgtests now consistently fail
  (http://autopkgtest.ubuntu.com/packages/l/linux/xenial/i386/):

  ======================================================================
    FAIL: test_easyprof (__main__.ApparmorTest)
    Test aa-easyprof
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "./test-apparmor.py", line 1190, in test_easyprof
        self.assertEquals(expected, rc, result + report)
    AssertionError: Got exit code 127, expected 0
    [Errno 2] No such file or directory
    
    ======================================================================
    FAIL: test_python (__main__.ApparmorBindings)
    Test python binding
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "./test-apparmor.py", line 2403, in test_python
        self.assertEquals(expected, rc, result + report)
    AssertionError: Got exit code 1, expected 0
    Traceback (most recent call last):
      File "/tmp/testlibZ6TSPQ/test-script", line 20, in <module>
        import LibAppArmor
    ImportError: No module named LibAppArmor

  This could just be a missing test dependency (easyprof/the lib), or
  maybe also related to the "switch to Python 3.5 by default" transition
  in xenial-proposed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1510362/+subscriptions


References