Unable to run test-apparmor.py from ubuntu_qrt_apparmor on Groovy

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

Bug Description

This script was written in python2,
however the python-pexpect module does not exist anymore on Groovy (replaced by python3-pexpect)

The test will fail with:
  ImportError: No module named pexpect

A quick and dirty fix is to change the shebang from:
  #!/usr/bin/python2

To:
  #!/usr/bin/env python3

Tested on Groovy s390x LPAR (s2lp4) and the test can be executed but with failures reported, please find the attachment for detailed report.

I think it is not the best way to fix this, as we will need to run this test on older releases too (for Trusty ESM), it's better to test if this will cause any problem on them first.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Download full text (4.7 KiB)

A grep with FAIL in the log file, please find attachment for the complete test log.
FAIL: test_parser_testsuite (__main__.ApparmorTestsuites)
FAIL: test_cache_when_requested (__main__.AAParserBasicCachingTests)
FAIL: test_features_match_when_caching (__main__.AAParserBasicCachingTests)
FAIL: test_no_cache_by_default (__main__.AAParserBasicCachingTests)
FAIL: test_no_cache_w_skip_cache (__main__.AAParserBasicCachingTests)
FAIL: test_write_features_when_caching (__main__.AAParserBasicCachingTests)
FAIL: test_cache_when_requested (__main__.AAParserAltCacheBasicTests)
FAIL: test_features_match_when_caching (__main__.AAParserAltCacheBasicTests)
FAIL: test_no_cache_by_default (__main__.AAParserAltCacheBasicTests)
FAIL: test_no_cache_w_skip_cache (__main__.AAParserAltCacheBasicTests)
FAIL: test_write_features_when_caching (__main__.AAParserAltCacheBasicTests)
FAIL: test_cache_when_requested (__main__.AAParserCreateCacheBasicTestsCacheExists)
FAIL: test_features_match_when_caching (__main__.AAParserCreateCacheBasicTestsCacheExists)
FAIL: test_no_cache_by_default (__main__.AAParserCreateCacheBasicTestsCacheExists)
FAIL: test_no_cache_w_skip_cache (__main__.AAParserCreateCacheBasicTestsCacheExists)
FAIL: test_write_features_when_caching (__main__.AAParserCreateCacheBasicTestsCacheExists)
FAIL: test_cache_when_requested (__main__.AAParserCreateCacheBasicTestsCacheNotExist)
FAIL: test_features_match_when_caching (__main__.AAParserCreateCacheBasicTestsCacheNotExist)
FAIL: test_no_cache_by_default (__main__.AAParserCreateCacheBasicTestsCacheNotExist)
FAIL: test_no_cache_w_skip_cache (__main__.AAParserCreateCacheBasicTestsCacheNotExist)
FAIL: test_write_features_when_caching (__main__.AAParserCreateCacheBasicTestsCacheNotExist)
FAIL: test_cache_when_requested (__main__.AAParserCreateCacheAltCacheTestsCacheNotExist)
FAIL: test_features_match_when_caching (__main__.AAParserCreateCacheAltCacheTestsCacheNotExist)
FAIL: test_no_cache_by_default (__main__.AAParserCreateCacheAltCacheTestsCacheNotExist)
FAIL: test_no_cache_w_skip_cache (__main__.AAParserCreateCacheAltCacheTestsCacheNotExist)
FAIL: test_write_features_when_caching (__main__.AAParserCreateCacheAltCacheTestsCacheNotExist)
FAIL: test_abstraction_mtime_preserved (__main__.AAParserCachingTests)
FAIL: test_abstraction_newer_rewrites_cache (__main__.AAParserCachingTests)
FAIL: test_abstraction_newer_skips_cache (__main__.AAParserCachingTests)
FAIL: test_cache_loaded_when_exists (__main__.AAParserCachingTests)
FAIL: test_cache_not_loaded_when_features_differ (__main__.AAParserCachingTests)
FAIL: test_cache_not_loaded_when_skip_arg (__main__.AAParserCachingTests)
FAIL: test_cache_not_loaded_when_skip_read_arg (__main__.AAParserCachingTests)
FAIL: test_cache_writing_clears_all_files (__main__.AAParserCachingTests)
FAIL: test_cache_writing_collision_of_features (__main__.AAParserCachingTests)
FAIL: test_cache_writing_does_not_overwrite_features_when_features_differ (__main__.AAParserCachingTests)
FAIL: test_cache_writing_skipped_when_features_differ (__main__.AAParserCachingTests)
FAIL: test_cache_writing_updates_cache_file (__main__.AAParserCachingTests)
FAIL: test_equal_mtimes_preserved (__main__.AAParserCac...

Read more...

tags: added: 5.8 groovy kqa-blocker sru-20200720 ubuntu-qrt-apparmor
description: updated
Po-Hsu Lin (cypressyew)
description: updated
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Changed in ubuntu-kernel-tests:
assignee: nobody → Paolo Pisati (p-pisati)
status: New → Fix Released
Changed in qa-regression-testing:
status: New → Invalid
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.