ubuntu_qrt_apparmor failed with TypeError: copytree() got an unexpected keyword argument 'ignore_dangling_symlinks'

Bug #1988424 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QA Regression Testing
Fix Released
Undecided
Unassigned
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned

Bug Description

Issue found on different kernels:
* X-hwe
* B-azure-5.4
* F-oracle5.4

6 tests failed with:
 TypeError: copytree() got an unexpected keyword argument 'ignore_dangling_symlinks'

 ======================================================================
 ERROR: test_libapparmor_testsuite (__main__.ApparmorTestsuites)
 Run libapparmor testsuite
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "./test-apparmor.py", line 1944, in test_libapparmor_testsuite
     self._prepare_source()
   File "./test-apparmor.py", line 1612, in _prepare_source
     ignore_dangling_symlinks=True)
 TypeError: copytree() got an unexpected keyword argument 'ignore_dangling_symlinks'

 ======================================================================
 ERROR: test_libapparmor_testsuite3 (__main__.ApparmorTestsuites)
 Run libapparmor testsuite (with python3)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "./test-apparmor.py", line 1967, in test_libapparmor_testsuite3
     self._prepare_source()
   File "./test-apparmor.py", line 1612, in _prepare_source
     ignore_dangling_symlinks=True)
 TypeError: copytree() got an unexpected keyword argument 'ignore_dangling_symlinks'

 ======================================================================
 ERROR: test_parser_testsuite (__main__.ApparmorTestsuites)
 Run parser regression tests
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "./test-apparmor.py", line 1901, in test_parser_testsuite
     self._prepare_source()
   File "./test-apparmor.py", line 1612, in _prepare_source
     ignore_dangling_symlinks=True)
 TypeError: copytree() got an unexpected keyword argument 'ignore_dangling_symlinks'

 ======================================================================
 ERROR: test_regression_testsuite (__main__.ApparmorTestsuites)
 Run kernel regression tests
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "./test-apparmor.py", line 1780, in test_regression_testsuite
     self._prepare_source()
   File "./test-apparmor.py", line 1612, in _prepare_source
     ignore_dangling_symlinks=True)
 TypeError: copytree() got an unexpected keyword argument 'ignore_dangling_symlinks'

 ======================================================================
 ERROR: test_utils_testsuite (__main__.ApparmorTestsuites)
 Run utils (make check)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "./test-apparmor.py", line 1865, in test_utils_testsuite
     self._prepare_source()
   File "./test-apparmor.py", line 1612, in _prepare_source
     ignore_dangling_symlinks=True)
 TypeError: copytree() got an unexpected keyword argument 'ignore_dangling_symlinks'

 ======================================================================
 ERROR: test_utils_testsuite3 (__main__.ApparmorTestsuites)
 Run utils (make check with python3)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "./test-apparmor.py", line 1877, in test_utils_testsuite3
     self._prepare_source()
   File "./test-apparmor.py", line 1612, in _prepare_source
     ignore_dangling_symlinks=True)
 TypeError: copytree() got an unexpected keyword argument 'ignore_dangling_symlinks'

This change was added in the following commit in qa-regression-testing repo:
commit 1aa2b80c0917fe8d8a46f929e0cdb9c60cec477b
Author: Alex Murray <email address hidden>
Date: Mon Aug 22 16:22:23 2022 +0930

    test-apparmor.py: Handle dangling symlinks in latest sources

    Signed-off-by: Alex Murray <email address hidden>

Po-Hsu Lin (cypressyew)
tags: added: bionic focal sru-20220829 ubuntu-qrt-apparmor xenial
Revision history for this message
Alex Murray (alexmurray) wrote :
Changed in qa-regression-testing:
status: New → Fix Committed
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Thanks for the quick fix, it's working now!

Changed in qa-regression-testing:
status: Fix Committed → Fix Released
Changed in ubuntu-kernel-tests:
status: New → 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.