← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2075574] [NEW] ubuntu_qrt_apparmor failed to start with python2 on older releases (SyntaxError: invalid syntax)

 

Public bug reported:

When trying to run ubuntu_qrt_apparmor with python2 on Focal and earlier releases, it will fail with:
 Running 'python2 ./test-apparmor.py -v ApparmorTest.test_snapd_snap_with_vendored_apparmor'
   File "./test-apparmor.py", line 2305
     key, *value = var.split('=', 1)
          ^
 SyntaxError: invalid syntax

This was introduced in 25617c3079 ("test-apparmor: fix DEB_HOST_ARCH not
defined")

We don't have this issue on Jammy and newer as we use python3 to run
this test.

** Affects: qa-regression-testing
     Importance: Undecided
         Status: New

** Affects: ubuntu-kernel-tests
     Importance: Undecided
         Status: New


** Tags: bionic focal sru-20240708 ubuntu-qrt-apparmor

** Also affects: qa-regression-testing
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2075574

Title:
  ubuntu_qrt_apparmor failed to start with python2 on older releases
  (SyntaxError: invalid syntax)

Status in QA Regression Testing:
  New
Status in ubuntu-kernel-tests:
  New

Bug description:
  When trying to run ubuntu_qrt_apparmor with python2 on Focal and earlier releases, it will fail with:
   Running 'python2 ./test-apparmor.py -v ApparmorTest.test_snapd_snap_with_vendored_apparmor'
     File "./test-apparmor.py", line 2305
       key, *value = var.split('=', 1)
            ^
   SyntaxError: invalid syntax

  This was introduced in 25617c3079 ("test-apparmor: fix DEB_HOST_ARCH
  not defined")

  We don't have this issue on Jammy and newer as we use python3 to run
  this test.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qa-regression-testing/+bug/2075574/+subscriptions



Follow ups