utils_testsuite fails with test-mount.py in ubuntu_qrt_apparmor on N-oem-6.8

Bug #2071593 reported by LEE KUAN-YING
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QA Regression Testing
New
Undecided
Unassigned
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

The test complains about the following issues on linux-oem-6.8 6.8.0-1007.7.

Both ApparmorTestsuites.test_utils_testsuite and ApparmorTestsuites.test_utils_testsuite3 failed with:

 === test-mount.py ===
 Traceback (most recent call last):
   File "/tmp/testlibq6i9amf6/source/noble/apparmor-4.0.1/utils/test/test-mount.py", line 28, in
     class MountTestParse(AATest):
   File "/tmp/testlibq6i9amf6/source/noble/apparmor-4.0.1/utils/test/test-mount.py", line 32, in MountTestParse
     ('mount -> **,', MountRule('mount', MountRule.ALL, MountRule.ALL, MountRule.ALL, '**', False, False, False, '' )),
                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/apparmor/rule/mount.py", line 145, in __init__
     self.dest, self.all_dest = self._aare_or_all(dest, 'dest', is_path=True, log_event=log_event)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/apparmor/rule/__init__.py", line 74, in _aare_or_all
     return AARE(rulepart, is_path=is_path, log_event=log_event), False
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/apparmor/aare.py", line 34, in __init__
     raise AppArmorException("Path doesn't start with / or variable: %s" % regex)
 apparmor.common.AppArmorException: "Path doesn't start with / or variable: **"
 make[1]: *** [Makefile:85: check] Error 1
 make[1]: Leaving directory '/tmp/testlibq6i9amf6/source/noble/apparmor-4.0.1/utils/test'
 make: *** [Makefile:103: check] Error 2

 ----------------------------------------------------------------------
 Ran 1 test in 33.812s

 FAILED (failures=1)

LEE KUAN-YING (kyyc0426)
description: updated
description: updated
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Attachment is the full test log.

description: updated
tags: added: 6.8 noble oem sru-s20240429 ubuntu-qrt-apparmor
Po-Hsu Lin (cypressyew)
summary: - utils_testsuite fails in ubuntu_qrt_apparmor
+ utils_testsuite fails with test-mount.py in ubuntu_qrt_apparmor on
+ N-oem-6.8
Revision history for this message
Georgia Garcia (georgiag) wrote :

This looks a bit weird. It looks like the test downloaded a different apparmor source (from -proposed) than what was installed in the machine. Since the version from -proposed landed in -updates (still in phasing, though), can this be retested with apparmor 4.0.1-0ubuntu0.24.04.2 installed?

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hello Garcia,
Thanks for the suggestion, I have this retested with 4.0.1-0ubuntu0.24.04.2 and it has passed.

We have this discrepancy because -proposed was enabled when testing noble. I will ask around to see if this is still needed.

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.