Description of problem: Test which reports multiple results wants to supress AVC check on single result. Adding: export AVC_ERROR=+no_avc_check export RHTS_OPTION_STRONGER_AVC= will supress AVC check for the result, but next result which is not suppressing AVCs now contains also AVCs suppressed by previous result. Version-Release number of selected component (if applicable): rhts-test-env-4.59-1.el7.noarch How reproducible: 100% Steps to Reproduce: 1. run test, which generates AVC from result 1 and suppress them with AVC_ERROR=+no_avc_check 2. result 2 is not generating any AVCs and is also not suppressing any AVCs Actual results: AVCs from result 1, which should be suppressed are reported in result 2 Expected results: suppressed AVCs are not reported as FAIL in any result Additional info:
Proposed patch: http://gerrit.beaker-project.org/#/c/2873/
Hint for testing: <task name="/distribution/command" role="STANDALONE"> <params> <param name="CMDS_TO_RUN" value="runcon system_u:system_r:httpd_t:s0 cat /etc/shadow ; rhts-report-result $TEST/reportavc PASS /dev/null ; runcon system_u:system_r:httpd_t:s0 cat /etc/shadow ; AVC_ERROR=+no_avc_check RHTS_OPTION_STRONGER_AVC= rhts-report-result $TEST/ignoreavc PASS /dev/null ; rhts-report-result $TEST/noavc PASS /dev/null"/> </params> </task> Expected results are: reportavc Pass reportavc/avc Fail ignoreavc Pass (no AVC checking performed, no avc-log) noavc Pass (AVC checking performed, avc-log present, but no AVC failures reported)
rhts-4.60 has been released.