Closed jmazanek closed 6 years ago
This fix tests if the argument to gen_blacklist function is not empty, before passing it to test if it is an existing file. The strange quotation format on the second line is internal to the error message, that seems to be produced by ldd
command when missing the expected library.
How to test:
In /etc/preupgrade-assistant.conf add a following input:
[xccdf_preupg_rule_system_BinariesRebuild_check] exclude_file=
Run the preupgrade-assistant , the warning message for the missing file should not be printed
As a control case, put a value to exclude_file directive to some non-existing file. In this case the warning message will be printed.
New test case for this PR created: /CoreOS/preupgrade-assistant-el6toel7/ast/binaries-rebuild-checks-exclude-file-directive
Test case passed with installed preupgrade-assistant-el6toel7-0.7.5-0.201807030924Z.PR97.el6_8.noarch -> VERIFIED