Unable to run test-apparmor.py from ubuntu_qrt_apparmor on Groovy
Bug #1890771 reported by
Po-Hsu Lin
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/
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.
description: | updated |
To post a comment you must log in.
A grep with FAIL in the log file, please find attachment for the complete test log. testsuite (__main_ _.ApparmorTests uites) when_requested (__main_ _.AAParserBasic CachingTests) match_when_ caching (__main_ _.AAParserBasic CachingTests) cache_by_ default (__main_ _.AAParserBasic CachingTests) cache_w_ skip_cache (__main_ _.AAParserBasic CachingTests) features_ when_caching (__main_ _.AAParserBasic CachingTests) when_requested (__main_ _.AAParserAltCa cheBasicTests) match_when_ caching (__main_ _.AAParserAltCa cheBasicTests) cache_by_ default (__main_ _.AAParserAltCa cheBasicTests) cache_w_ skip_cache (__main_ _.AAParserAltCa cheBasicTests) features_ when_caching (__main_ _.AAParserAltCa cheBasicTests) when_requested (__main_ _.AAParserCreat eCacheBasicTest sCacheExists) match_when_ caching (__main_ _.AAParserCreat eCacheBasicTest sCacheExists) cache_by_ default (__main_ _.AAParserCreat eCacheBasicTest sCacheExists) cache_w_ skip_cache (__main_ _.AAParserCreat eCacheBasicTest sCacheExists) features_ when_caching (__main_ _.AAParserCreat eCacheBasicTest sCacheExists) when_requested (__main_ _.AAParserCreat eCacheBasicTest sCacheNotExist) match_when_ caching (__main_ _.AAParserCreat eCacheBasicTest sCacheNotExist) cache_by_ default (__main_ _.AAParserCreat eCacheBasicTest sCacheNotExist) cache_w_ skip_cache (__main_ _.AAParserCreat eCacheBasicTest sCacheNotExist) features_ when_caching (__main_ _.AAParserCreat eCacheBasicTest sCacheNotExist) when_requested (__main_ _.AAParserCreat eCacheAltCacheT estsCacheNotExi st) match_when_ caching (__main_ _.AAParserCreat eCacheAltCacheT estsCacheNotExi st) cache_by_ default (__main_ _.AAParserCreat eCacheAltCacheT estsCacheNotExi st) cache_w_ skip_cache (__main_ _.AAParserCreat eCacheAltCacheT estsCacheNotExi st) features_ when_caching (__main_ _.AAParserCreat eCacheAltCacheT estsCacheNotExi st) n_mtime_ preserved (__main_ _.AAParserCachi ngTests) n_newer_ rewrites_ cache (__main_ _.AAParserCachi ngTests) n_newer_ skips_cache (__main_ _.AAParserCachi ngTests) loaded_ when_exists (__main_ _.AAParserCachi ngTests) not_loaded_ when_features_ differ (__main_ _.AAParserCachi ngTests) not_loaded_ when_skip_ arg (__main_ _.AAParserCachi ngTests) not_loaded_ when_skip_ read_arg (__main_ _.AAParserCachi ngTests) writing_ clears_ all_files (__main_ _.AAParserCachi ngTests) writing_ collision_ of_features (__main_ _.AAParserCachi ngTests) writing_ does_not_ overwrite_ features_ when_features_ differ (__main_ _.AAParserCachi ngTests) writing_ skipped_ when_features_ differ (__main_ _.AAParserCachi ngTests) writing_ updates_ cache_file (__main_ _.AAParserCachi ngTests) mtimes_ preserved (__main_ _.AAParserCac. ..
FAIL: test_parser_
FAIL: test_cache_
FAIL: test_features_
FAIL: test_no_
FAIL: test_no_
FAIL: test_write_
FAIL: test_cache_
FAIL: test_features_
FAIL: test_no_
FAIL: test_no_
FAIL: test_write_
FAIL: test_cache_
FAIL: test_features_
FAIL: test_no_
FAIL: test_no_
FAIL: test_write_
FAIL: test_cache_
FAIL: test_features_
FAIL: test_no_
FAIL: test_no_
FAIL: test_write_
FAIL: test_cache_
FAIL: test_features_
FAIL: test_no_
FAIL: test_no_
FAIL: test_write_
FAIL: test_abstractio
FAIL: test_abstractio
FAIL: test_abstractio
FAIL: test_cache_
FAIL: test_cache_
FAIL: test_cache_
FAIL: test_cache_
FAIL: test_cache_
FAIL: test_cache_
FAIL: test_cache_
FAIL: test_cache_
FAIL: test_cache_
FAIL: test_equal_