Environment variable in test-apparmor.py was not properly restored after the test
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QA Regression Testing |
Fix Released
|
Undecided
|
Po-Hsu Lin |
Bug Description
With the capability of running tests one by one in test-apparmor.py, I found the test_utils_
sudo ./test-apparmor.py -v ApparmorTestsui
This is because the test is trying to use python2, please refer to bug 2000062 for more information.
However this did not happen when we're running the whole test altogether, e.g.:
sudo ./test-apparmor.py -v
It's caused by the environment variable override in test_libapparmo
We should remove these environment variable after test if they were not in place at the very beginning.
Related branches
- Alex Murray: Approve
-
Diff: 22 lines (+4/-0)1 file modifiedscripts/test-apparmor.py (+4/-0)
Changed in qa-regression-testing: | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
Changed in qa-regression-testing: | |
status: | In Progress → Fix Released |